MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?class n extends Thread { Thread thread; n() { thread = new Thread(this,"New Thread"); thread.start(); } public void run() { System.out.println(thread.isAlive()); } } public class multithreading_Example { public static void main(String args[]) { new n(); } } |
| A. | Compilation Error |
| B. | True |
| C. | Runtime Error |
| D. | False |
| E. | None of these |
| Answer» C. Runtime Error | |