Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.465 :

Posted: Mon Jan 31, 2011 9:18 pm
by ETS User
What will the following program print when run?


class MyThread extends Thread
{
public void run()
{
for(;;)
{
System.out.println("running...");
}
}
}
public class TestClass
{
public static void main(String args[]) throws Exception
{
MyThread mt = new MyThread();
mt.setDaemon(true);
mt.start();
mt.setDaemon(false);
}
}
Respectfully, we are told that the topic of daemon threads is not on the exam.