<<
class MyThread implements Runnable {
public void run() {
// Thread's body
}
}// Create daemon thread
Thread th = new Thread(new MyThread());
th.setDaemon(true); // <-- Here
th.start();
>>
class MyThread implements Runnable {
public void run() {
// Thread's body
}
}// Create daemon thread
Thread th = new Thread(new MyThread());
th.setDaemon(true); // <-- Here
th.start();
>>
这种问题都问的出来?狂吐血。。