It's not a secret anymore!
The moose likes Java in General and the fly likes Garbage Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Garbage Collection" Watch "Garbage Collection" New topic

Garbage Collection

Mohit Agarwal
Ranch Hand

Joined: Mar 30, 2004
Posts: 88
Hi All,

I want to know that how does the garbage collector came to know that a particular object is eligible for garbage collection as there can be many objects in the memory . So what alogorithm Garbage collection implements
to know whether an object posses any reachable reference to it or not.

Please let me know about this.

Mohit Agarwal,
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Read this series

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Don't get me started about those stupid light bulbs.
subject: Garbage Collection
It's not a secret anymore!