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 are the data types supported by java? What is autoboxing and unboxing?
What isan abstract class and when do you use it?
Which programming language is most secure?
Java is pass by value or pass by reference? Explain
Explain the difference between a Thread and a Process.
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
How can I become a good programmer?
Can we inherit inner class?
What is string pool?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is return type in java?
Are there structures in java?
In how many ways we can create threads in java?
Can you override private or static method in java?
what do you mean by classloader in java?