Vidyalelo
Java Programming · Q38

Threads

Programming · Java Programming · question 38

Q38

What will be the output? class One extends Thread public void run() for(int i=0; i<2; i++) System.out.print(i); public class Test public static void main(String args[]) Test t = new Test(); t.call(new One()); public void call(One o) o.start();

A.
0 0
B.
Compilation Error
C.
0 1
Answer
D.
None of these

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board