A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Programmer Certification (SCJP/OCPJP)
When does the JVM Exit?
Joined: Mar 26, 2007
Jun 03, 2007 10:33:00
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.
Joined: Aug 31, 2004
Jun 03, 2007 21:30:00
It would be
practice for the
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."
I agree. Here's the link:
subject: When does the JVM Exit?
Which is right?
When does the JVM exit
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014