MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?class newthread implements Runnable { Thread thread; newthread() { thread = new Thread(this,"New Thread created..."); thread.start(); } public void run() { System.out.println(thread); } } public class multithreaded_Example { public static void main(String args[]) { new newthread(); } } |
| A. | [New Thread created...,5,main] |
| B. | New Thread created... |
| C. | main |
| D. | Thread[New Thread created...,5,main] |
| E. | None of these |
| Answer» E. None of these | |