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