V
Q. 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();
}
}
- Correct Answer - Option(C)
- Views: 16
- Filed under category JAVA
Discusssion
Login to discuss.