Can an unreachable object become reachable again?
Answers were Sorted based on User's Feedback
Answer / shadow
An unreachable object may become reachable again. This can
happen when the object's finalize() method is invoked and
the object performs an operation which causes it to become
accessible to reachable objects....!
CHHAYA
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / javadreams
String objects are immutable and are placed in a different
pool called as String constant pool. So whenever users try
to create new string object jvm looks out for this pool and
returns the reference for the string object.
So this could be one of the means of getting access to
unreachable string object .
| Is This Answer Correct ? | 1 Yes | 0 No |
Can you declare a static variable in a method?
Which collection object is faster to retrieving the data and inserting the data into it.
2 Answers Jamcracker, Virtusa,
What is nested loop? What is dangling else condition in it?
Can an abstract class be final?
Can we assign integer value to char in java?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
whats the difference between == and .equal ?
What is the this keyword?
Which methods cannot be overridden in java?
What is the difference between the file and randomaccessfile classes?
What is anonymous inner class?
What function extracts specified characters from a string?