| Author |
garbage collection
|
sweta chandak
Greenhorn
Joined: Apr 03, 2009
Posts: 7
|
|
Hi all,
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 .
Please help!
Thanks
Sweta
|
 |
Rafael Angarita
Ranch Hand
Joined: Jan 09, 2009
Posts: 67
|
|
Hello Sweta!
Draw a map of what is happening to find out which object becomes eligible for garbage collection.
Look at the example posted here:
http://www.coderanch.com/t/426963/Programmer-Certification-SCJP/certification/Garbage-Collection
Cheers
|
Rafael Angarita.
SCJP 6.
|
 |
Himalay Majumdar
Ranch Hand
Joined: Sep 28, 2008
Posts: 324
|
|
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.
This Link shall help you
|
SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
|
 |
 |
|
|
subject: garbage collection
|
|
|