A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
Programmer Certification (SCJP/OCPJP)
About Garbage Collection
Joined: Oct 22, 2007
Feb 27, 2008 06:08:00
An object has a valid reference, but no live thread has access to it. Will it be eligible for garbage collection?
Joined: Aug 14, 2006
Feb 27, 2008 06:57:00
I would say yes. As I understand it an object is eligible for garbage collection if no live threads have access to it.
The object that it has a reference to still exists unless it to is not being accessed by any live threads.
I agree. Here's the link:
subject: About Garbage Collection
TO the authors : "request" object
Tech Word Game
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015