Respectfully, we are told that the topic of daemon threads is not on the exam.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);
}
}
About Question com.enthuware.ets.scjp.v6.2.465 :
Moderator: admin
About Question com.enthuware.ets.scjp.v6.2.465 :
Who is online
Users browsing this forum: No registered users and 74 guests