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.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести