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
Why java uses the concept of the string literal?
What are keywords and reserved words in java?
What is vector capacity in java?
What is the technique adopted to create an immutable class?
What are unchecked exceptions in java?
What is multi level inheritance in java?
What are different ways of object creation in java ?
What are user defined exceptions?
Explain the Propertie sof class?
What are the differences between graph and tree?
What does super keyword do?
What is the size of boolean variable?
What are locale settings?
What does function identity () do?
What is the maximum size of arraylist in java?