Thread Methods Constructors , sleep & Interrupt in Java
During sleep, the thread does not release the lock. The interrupt() method allows for interruptions. If the thread is interrupted while it is sleeping, it throws an InterruptedException.
Sign in to join the conversation.
Sign in with Google
Comments