1.

What will be the output of the program?

class MyThread extends Thread { public static void main(String [] args) { MyThread t = new MyThread(); Thread x = new Thread(t); x.start(); /* Line 7 */ } public void run() { for(int i = 0; i < 3; ++i) { System.out.print(i + ".."); } }
}

A. Compilation fails.
B. 1..2..3..
C. 0..1..2..3..
D. 0..1..2..
Answer» E.


Discussion

No Comment Found

Related MCQs