1.

What is the output of this program?class newthread implements Runnable { Thread thread; newthread() { thread = new Thread(this,"My Thread"); thread.start(); } } public class multithreaded_Example { public static void main(String args[]) { new newthread(); } }

A. Runtime Error
B. Compilation Error
C. Thread[My Thread,5,main].
D. My Thread
E. None of these
Answer» C. Thread[My Thread,5,main].


Discussion

No Comment Found

Related MCQs