Garbage collection (object lifetime)

Explain details of concept of"object iceland" in garbage collection (object lifetime) in core java

Showing Answers 1 - 3 of 3 Answers

Ans):if a composite object becomes unreachable, then its constituent objects also become unreachable, barring any reachable references to the constituent objects.

ex:objects o1, o2, and o3 form a circular list(object o1 have reference to o2,object o2 have reference to  o3 and object o3 have reference to o1) , and they do not have any reachable references.These objects are called  "object iceland". Thus, these objects are all eligible.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions