1.

What is the output of this program?class Mythread extends Thread { Thread thread; Mythread() { thread = new Thread(this,"New Thread"); thread.start(); } public void run() { try { thread.join(); System.out.println(thread.getName()); } catch(Exception e) { System.out.print("Exception"); } } } public class multithreaded_programing { public static void main(String args[]) { new Mythread(); } }

A. New Thread
B. Thread
C. My Thread
D. Compilation Error
E. Runtime Error
Answer» F.


Discussion

No Comment Found

Related MCQs