Hi Shiva,
Then which three objects are eligible for GC here and how?
I think:
I mean the three new Island-objects, not the references.
And I don't think, that this is an example of island of isolation. i2,3,4 are all nulled so all of their member variables (i) don't have an object which they could reference.
And no live
thread can access these i2,3,4. So the three above are eligible for garbage collection.
Or am I wrong?
Yours,
Bu.