Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can an unreachable object become reachable again?

Answers were Sorted based on User's Feedback



Can an unreachable object become reachable again?..

Answer / niranjanravi

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

Is This Answer Correct ?    19 Yes 1 No

Can an unreachable object become reachable again?..

Answer / rakesh kumar jha

YES, Finalization is a feature of the Java programming
language that allows you to perform postmortem cleanup on
objects that the garbage collector has found to be
unreachable. It is typically used to reclaim native
resources associated with an object.
When the garbage collector determines that obj is
unreachable, it notices that obj is finalizable -- as it
had been recorded upon allocation -- and adds it to the
JVM's finalization queue. It also ensures that all objects
reachable from obj are retained, even if they are otherwise
unreachable, as they might be accessed by the finalizer.

So, we can say that it can be reachable.

Is This Answer Correct ?    10 Yes 1 No

Can an unreachable object become reachable again?..

Answer / ravikiran(aptech mumbai)

yes an unreachable object may become reachable once it get a
reference befre garbage collection especially in finalize()
method call

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is Servlet?

8 Answers  


What languages are pass by reference?

0 Answers  


why there are multiple catches for a try block.don't tell me that there can be multiple exception of a code segment that's why.tell me the real fact behind this.

4 Answers  


Is space a char?

0 Answers  


How can the checkbox class be used to create a radio button?

0 Answers  


How to prevent to create multiple objects of a java class?

3 Answers   ASD Lab, TCS,


What do you mean by of string::valueof expression in java 8?

0 Answers  


What is JDBC Driver interface?How can you retrieve data from the ResultSet

0 Answers   CTS,


Can we use both this () and super () in a constructor?

0 Answers  


how can i take the inputs from users in java program?

7 Answers   Wipro,


What is string in java? String is a data type?

0 Answers  


What do you mean by light weight and heavy weight components?

0 Answers  


Categories