wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes User and Daemon Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "User and Daemon Threads" Watch "User and Daemon Threads" New topic
Author

User and Daemon Threads

Gaurav Chikara
Ranch Hand

Joined: Jun 09, 2000
Posts: 410
15)
With respect to User and Daemon threads:

a) Daemon threads can not be grouped together

b) Running Daemon threads prevent a Java VM from terminating program

c) The JVM can terminate program when only daemon threads are running

d) Running User threads prevent a JVM from terminating program

Correct answers should be
c.because only after user threads have finished executing then only JVM terminates program
d.should be correct because of the same reason stated above
Correct me if wrong .

SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: User and Daemon Threads
 
Similar Threads
daemon thread.
Thread Que.
User and Daemon threads
IBM Sample Question
threads