The question below was found in the book:
SCJP Sun Certified Programmer for
Java 6 Study Guide (Exam 310-065). It is the first self
test question of Chapter 3.
Why isn't c3 eligible for garbage collection in the following question? Doesn't it equate to null after c1.go(c2) returns?
QUESTION:- When // doStuff is reached, how many objects are eligible for GC?