Java
Which of t ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which of the following methods throws an exception InterruptedException?
yield
wait
sleep
notify
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.
Object class
InterruptedException
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
Which of the following methods are defined in the Object class?...
What will happen after the following code is compiled and executed? ...
What will happen when the following code is compiled and executed? ...
If finalize() method is overridden in a class, when will this method called for ...
What happens when the following code is compiled? publi...
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment