Vidyalelo
Java Programming · Q114

Interfaces and Abstract Classes

Programming · Java Programming · question 114

Q114

What will be the output of the following Java program? class newthread implements Runnable Thread t; newthread() t = new Thread(this,"My Thread"); t.start(); class multithreaded_programing public static void main(String args[]) new newthread();

A.
My Thread
B.
Thread[My Thread,5,main]
C.
Compilation Error
Answer
D.
Runtime Error

Answer: Option C

Solution

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