Yes, three objects are eligible for GC,:-the object pointed to originally by gb1.g.g no
longer has a reference and also the objects pointed to originally by gb2.g and gb2.g.g also lose
any references pointing to them. I tend to use the same method as W. Joe Smith, although this was
a particularly nasty GC question. It seems to
test your ability to solve puzzles rather than your
ability to program or your knowledge of
Java.
Martin