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 |
Explain the public class modifier?
What will be the output of round(3.7) and ceil(3.7)?
How to create an instance of a class if the class has private constructor?
Difference between String and String Buffer?
What is the point of polymorphism java?
Can an interface have a constructor?
what is difference between signed & unsigned char?
What is the use of toarray () in java?
Explain the importance of thread scheduler in java?
What is stack class in java?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding .........