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.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes