aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes IBM Sample Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "IBM Sample Question" Watch "IBM Sample Question" New topic
Author

IBM Sample Question

Allan Tan
Greenhorn

Joined: Oct 31, 2000
Posts: 7
With respect to User and Daemon threads:





This one is from IBM: which of the following are true?
a) Daemon threads can not be grouped together
b) The JVM can terminate program when only daemon threads are running
c) Running Daemon threads prevent a Java VM from terminating program
d) Running User threads prevent a JVM from terminating program

Needed help...
Udayan Naik
Ranch Hand

Joined: Oct 18, 2000
Posts: 135
In my opinion , b) and d) are the correct answers.
a) Daemon threads can not be grouped together - FALSE.You can always create a new Thread that belongs to a particular ThreadGroup and call the setDaemon() method on that thread.
b) The JVM can terminate program when only daemon threads are running - TRUE.
c) Running Daemon threads prevent a Java VM from terminating program - FALSE.
d) Running User threads prevent a JVM from terminating program -TRUE.


------------------
Come on in !! Drinks are on the house in the Big Moose Saloon !!


Udayan Naik<BR>Sun Certified Programmer for the Java 2 Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IBM Sample Question