top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Can an unreachable object become reachable again?

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

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social 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
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.