Can an object be garbage collected while it is still
reachable?

Answers were Sorted based on User's Feedback



Can an object be garbage collected while it is still reachable?..

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

Can an object be garbage collected while it is still reachable?..

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

Can an object be garbage collected while it is still reachable?..

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

Post New Answer

More Core Java Interview Questions

What is heterogeneous in java?

0 Answers  


which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com

0 Answers   IBM,


Can you declare a private method as static?

0 Answers   TCS,


Hi Friends, I am beginner in java. what i know about synchonized keyword is,If more that one 1 thread tries to access a particular resource we can lock the method using synchronized keyword. Then after that how the lock is released and how next thread access that.Please explain with example.

5 Answers  


what is purpose of collections.unmodified() method..?

1 Answers   Accenture,






What is executor memory?

0 Answers  


what is jdk1.5 features?

6 Answers   AMS, Virtusa,


How is final different from finally and finalize?

0 Answers  


Is it possible for a yielded thread to get chance for its execution again?

0 Answers  


What is the final method?

0 Answers  


What are java methods?

0 Answers  


What are void pointers?

1 Answers  


Categories