• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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 !!
 
You get good luck from rubbing the belly of a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic