The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Circular Reference in Java

Posted by Raj on October 25, 2000 at 2:15 PM

Can any one help me in getting an explanination to how is circular references are handled in Java using the Mark Sweep GC algorithm. Common expample used is if Class A has a reference to object of Class B and Class B has a reference to object of Class A both have a reference count of 1 so when will they be garbage collected.

thanking in advance..


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us