this code sample is on page 259 of n B.
****************************
Question is how many objects are eligible for GC after line "c1=null"
Answer is given 2(one is Short story and another is c1)
But according to me there should be 4
two are as the answer is given.
third is "c3" as it is set to null after invoking go() method.
forth is "c2"(not sure) as we are passing it as argument in go()
so in body of method it is being set to null (if i am right?)
**************************************************
What's your opinion???
Thanks
Deepak
[BSouther: Added
UBB CODE tags]
[ March 04, 2008: Message edited by: Ben Souther ]