• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

User and Daemon Threads

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic