Which of the following methods throws an exception InterruptedException?
Explanation
Wait and sleep methods can throw an InterruptedException. InterruptedException signals a stop request that was passed to the thread to stop it's activity or shut down a program completely.
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback