Can an unreachable object become reachable again?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full meaning of java?

542


State the merge-sort principle and its time complexity.

575


What an i/o filter in java programming?

608


What is complexity in java?

529


Define nashorn in java8.

570






Can an interface extend a class?

545


What is difference between classpath and path variables in java?

560


What’s the difference between the methods sleep() and wait()?

545


What is the use of hashmap in java?

557


How many bits is a string?

529


What is locale in java?

579


What are the Main functions of Java?

633


How to display arraylist values in java?

492


How does java pattern compile work?

552


Can a class have multiple constructors?

539