A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Joined: Apr 03, 2009
Apr 08, 2009 07:21:44
I find great difficulty in understanding when an object becomes eligible for garbage collection. I am not able to look at the code and find out .
Joined: Jan 09, 2009
Apr 08, 2009 07:35:10
Draw a map of what is happening to find out which object becomes eligible for garbage collection.
Look at the example posted here:
Joined: Sep 28, 2008
Apr 08, 2009 07:39:20
Yes..Drawing map is the best way to learn it. Basically you must know how objects are referenced and when the reference is taken off.
Also try searching questions on GC in javaranch, I am sure we have many quality questions being answered.
shall help you
SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
I agree. Here's the link:
subject: garbage collection
Tech Word Game
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013