1.

after line 11 runs, how many objects are eligible for garbage collection?

Answer» This is an example of the islands of isolated objects. By the time line 11 has run, the objects instantiated in lines 6 and 7 are referring to each other, but no live thread can reach either of them.


Discussion

No Comment Found