Can an object be garbage collected while it is still
reachable?
Answers were Sorted based on User's Feedback
Answer / ravikiran(aptech mumbai)
yes...all the garbage ollection things depends on the
garbage collector of JVM
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / 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 |
Answer / janet
Once an object is garbage collected, it ceases to exist. It
can no longer become reachable again.
| Is This Answer Correct ? | 0 Yes | 3 No |
What is xslt in java?
List the interfaces which extends collection interface?
What data type is a string?
List primitive java types?
difference between arraylist and linkedlist otherthan performance
Why null interfaces are used in Java?
Can we print null in java?
What do you mean by platform independence? What is an interface?
Urgent requirement of JAVA/.NET/QA in a CMMI level3 MNC for Pune location.
Is stringwriter thread safe?
Is boolean a data type in java?
What is static and final keyword in java?