When does Java's Thread.sleep throw InterruptedException?
https://stackoverflow.com/questions/1087475/when-does-javas-thread-sleep-throw-interruptedexception
WebJun 3, 2022 · An InterruptedException is thrown when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity. In other words, InterruptedException occurs when some code has called the interrupt() method on a specific thread. It's a checked exception, and many blocking operations in Java can ...
DA: 1 PA: 50 MOZ Rank: 96