Section 3: Garbage Collection


  • Recognize the point in a piece of source code at which an object becomes eligible for garbage collection.

Relevant Sections

Read subsections "Reachable References" and "Facilitating Garbage Collection" in Section 8.1.

Study Notes

An object becomes eligible for garbage collection when it has no references from running code. If a reference is reassigned, the object previously denoted by the reference now has one less reference, increasing this object's chances of becoming eligible for garbage collection. It is important to be able to identify where in the code an object will have no references during execution.



A Programmer[ap]s Guide to Java Certification
A Programmer[ap]s Guide to Java Certification
ISBN: 201596148
EAN: N/A
Year: 2003
Pages: 284

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net