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 |
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service
can u override the start() method of Thread class
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
How many ways can we create the string object?
What is the default value of byte datatype in java?
How to instantiate static nested classes in java?
Can you sort a string in java?
What is a dynamic array in java?
Can we declare array without size in java?
What is a website container?
Difference between overloading and overridding?
Are there structures in java?