I was wondering how the garbage collector in Java deals with the following situation.
Object A has a reference to Object B and Object B has a reference to Object C. The
I think the logic is different. If the object is not accessible from a thread then it can be collected.