Hi Tina,
I stand in the same group as you Tina;
I think in the same way, as you:
What I think:
11 objects will be eligible for GC because tmp is local to
the for block and 11 objects are created inside the block,
and outside that block we don't have reference to the lastly
created Object, so 11 will be eligible for GC.
If we modify the code as:
Then we can say 10 objects are eligible for GC.
Tina, don't you think these GC questions are killing! See my latest question on "GC"!
Regards,
cmbhatt
[ April 21, 2007: Message edited by: Chandra Bhatt ]