This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Does JVM exits after the main() thread ? I think it does - True. But I found that one of the mock test says that some other threads may still be running. How is this possible ? Can anyone explain. Your help is appreciated. Thx in Advance. Aruna
Does JVM exits after the main() thread? 1) if main() method (main thread) did not start other thread, JVM exits 2) if other (non-daemon) thread was constructed in main() method, and this new thread is still running, JVM will wait until it finishes. 2) if main() method ended and there are only daemon threads running, JVM exits.