posted 16 years ago
-----------------------
here i1 has-a ref to i2, and i2 has-a ref to i1. Assumption is that there is no other objects that have has-a relationship regarding this two objects, so in that situation they are "island of isolation", and thus eligible for gc.
regards,
Ivan Ivanic
[ April 22, 2008: Message edited by: ivan ivanic ]
<a href="http://faq.javaranch.com/java/UseRealWords" target="_blank">Use Real Words</a> <a href="http://faq.javaranch.com/java/UseCodeTags" target="_blank">!!!Use Code Tags!!!</a> <a href="http://faq.javaranch.com/java/SayThanks" target="_blank">Say Thanks</a><br />scjp6