Hi!,
I have this question.
When does the JVM exit.
1)After the main method returns.
2)After all the non demons threads created by the application complete.
3)After all the demon threads created by the application complete.
4)When a
thread executes System.exit().
5)When an uncaught exception is thrown in a non demon thread.
6)When an uncaught exception is thrown in a demon thread.