aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes When does the JVM Exit? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "When does the JVM Exit?" Watch "When does the JVM Exit?" New topic
Author

When does the JVM Exit?

Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
Hi all i came across this question in one of the mock exam of javablackbelt.

can any body suggest whats the answer..??

When does the JVM exit?


1)After the main method returns.



2)After all the non deamon threads created by the application complete.


3)After all the deamon 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.


Regards,
Durga Prasad
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

It would be great practice for the SCJP to write test code for each of these scenarios.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When does the JVM Exit?