Quizzes
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
InterruptedException
:
Content language: English
Русский
What will happen after the following code is compiled and executed? public class Main implements Runnable { public void run() { System.out.println("Hello"); Thread.currentThread().sleep(100); } public static void main(String... args) throws InterruptedException { new Thread(new Main()).start(); } }
InterruptedException
Which of the following methods throws an exception InterruptedException?
InterruptedException
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes