9.1 |
Which is the correct way to start a new thread? Select the one correct answer.
|
9.2 |
When extending the Thread class to provide a thread's behavior, which method should be overridden? Select the one correct answer.
|
9.3 |
Which statements are true? Select the two correct answers.
|
9.4 |
What will be the result of attempting to compile and run the following program? public class MyClass extends Thread { public MyClass(String s) { msg = s; } String msg; public void run() { System.out.println(msg); } public static void main(String[] args) { new MyClass("Hello"); new MyClass("World"); } } Select the one correct answer.
|