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 we serialize singleton class?
Is string passed by reference in java?
What is bytecode verifier?
What is the difference between scrollbar and scrollpane?
Explain public static void main(string args[]).
What are the ways in which a thread can enter the waiting state?
what is inner class in java?
Explain the importance of finally over return statement?
Why vector is used in java?
What is the syntax and characteristics of a lambda expression?
What does string intern() method do?
How can we create an immutable class in java?
What if static is removed from main method?
What is thread safe singleton?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.