Interview Questions

When a Thread will throw an interrupted exception?

When the interrupt() method is executed on a thread, the interrupted status of the Thread will be set to true. By that time, if the Thread is blocked by sleep() or wait() method, then it will throw an interrupted exception.