Can an unreachable object become reachable again?
Answers were Sorted based on User's Feedback
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|
Answer / ravikiran(aptech mumbai)
yes an unreachable object may become reachable once it get a
reference befre garbage collection especially in finalize()
|Is This Answer Correct ?||5 Yes||0 No|
To set the position and size of a component, which methods are used?
What is UNICODE?
what is the collable collections in java?
Explain your academic project?
what is Thread priority?
What is difference between static method and static variable?
What is OOPS Concept?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What are wrapped classes?
int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c;
Why Wait and notify are kept in Object class although they are used only with Thread Class
tell me some common