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
What is the full meaning of java?
State the merge-sort principle and its time complexity.
What an i/o filter in java programming?
What is complexity in java?
Define nashorn in java8.
Can an interface extend a class?
What is difference between classpath and path variables in java?
What’s the difference between the methods sleep() and wait()?
What is the use of hashmap in java?
How many bits is a string?
What is locale in java?
What are the Main functions of Java?
How to display arraylist values in java?
How does java pattern compile work?
Can a class have multiple constructors?