posted 13 years ago
Here is the question from K&B book page 275
How many objects are eligible for GC?
In my opinion,
Object refered by a2 is accessible
Object refered by b2 is accessible via a2.b2
Object refered by a1 is not accessible
What about Object refered by b1???
Please reply. Thank you.