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
Runnable class
:
Content language: English
Русский
What will be the result of compiling the following code: public class ThreadTest { public static void main(String[] args) throws InterruptedException { Thread thread = new Thread(new TestThread()); System.out.println("Hello, it's a main thread"); thread.start(); thread.join(); System.out.println("Good bye"); } } class TestThread implements Runnable { @Override public void run() { System.out.println("Hello, it's a simple thread"); } public void join() { System.out.println("Hello, it's a method join()"); } }
Runnable class
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes