When a task's interrupt() method is executed, the task enters the ready state. The next time the task entersthe running state, an InterruptedException is thrown.
Invoking interrupt method on the thread which us sleepingwill throw an "java.lang.InterruptedException"