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
As usual, this article is a must-read for whoever wants to understand what garbage collection does. It is well-written and has explanatory drawings.