• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

IBM Sample Question

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic