public class A extends
Thread {
A() {
setDaemon(true);
}
public void run() {
(new B()).start();
try {
Thread.sleep(60000);
} catch (InterruptedException x) {}
System.out.println("A done");
}
class B extends Thread {
public void run() {
try {
Thread.sleep(60000);
} catch (InterruptedException x) {}
System.out.println("B done");
}
}
public static void main(
String[] args) {
(new A()).start();
}
}
The result is "There is no exception that the application will print anything."
I compile it and it compile successfully.
But there is no output.
So I think it should be "There is no exception that the application will print nothing."
Right??