File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mock Exam Errata and the fly likes Valentin's, Question 4 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 » Mock Exam Errata
Bookmark "Valentin Watch "Valentin New topic
Author

Valentin's, Question 4

Steve Lovelace
Ranch Hand

Joined: Sep 03, 2003
Posts: 125
The question wants the following answer to be checked true:
The garbage collection thread cannot outlive the last user thread.
As I understand things, it will ALWAYS outlive the last user thread (though only by a hair). This is actually implied by the opening lines of the explanation to the question
The garbage collection thread is a deamon thread. The latter die when there are no more users threads running.
In other words, they die AFTER the last user thread dies.


The Inner that is named is not the true Inner.
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Thank you for pointing this out. You get credit for this one
I have changed the option to be
The garbage collection thread will die just after the last user thread dies.
I hope this clears your doubt.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
Consider Paul's rocket mass heater.
 
subject: Valentin's, Question 4
 
Similar Threads
daemon thread & user thread
Valentine's Exam
Threads and Garbage Collection
GC doubt
New SCJP mock exam