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
Can the garbage collection be forced by any means?
What is the use of isempty in java?
How do you use compareto?
Explain JMS in detail.
Why do we use bufferedreader?
Can I override protected method in java?
what is meant by Garbage collection?
What is difference between static variable and global variable?
Describe the various concepts related to object oriented programming (oop).
What are the methods available in a class?
How big is a pointer?
Why is a constant variable important?
Can java inner class be static?
Give reasons supporting that string is immutable.
What is dot operator?