Vidyalelo
Java Programming · Q55

Threads

Programming · Java Programming · question 55

Q55

What will be the output of the following Java code? class newthread extends Thread Thread t; newthread() t = new Thread(this,"New Thread"); t.start(); public void run() System.out.println(t.isAlive()); class multithreaded_programing public static void main(String args[]) new newthread();

A.
0
B.
1
C.
true
Answer
D.
false

Answer: Option C

Solution

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