Can an object be garbage collected while it is still
reachable?
Answer Posted / sudheer
Garbage collector is a low priority thread. We cant order to delete an object. When the object has no references and object which are out of scope will be deleted by the garbage collector to free the memory. So when an object is reachable it cant be garbage collected.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is off heap memory?
Explain java code for recursive solution's base case?
What is the properties class in java programming?
What does flag mean in java?
What does @override mean?
What is a cup of java?
Explain about fail safe iterators in java?
Explain the concept of proper inheritance?
What is arguments in java?
What is string in java? String is a data type?
What is JVM and is it platform independent?
what is thread? What are the high-level thread states? : Java thread
Whats the difference between notify() and notifyall()?
What is early binding and late binding in java?
How do you create a bulleted list?