top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can an unreachable object become reachable again?

+2 votes
727 views
Can an unreachable object become reachable again?
posted Mar 25, 2014 by Neeraj Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

An unreachable object may become reachable again. This can happen when the object's finalize() method is invoked and the object performs an operation which causes it to become accessible to reachable objects.

answer Mar 25, 2014 by Prachi Agarwal
0 votes

By using finalize() method of an object which is about to be garbage collected and creating reference to it from another object,so that the object is no longer available for garbage collection and hence the code can become reachable again.

answer Mar 27, 2014 by Pavan P Naik
...