Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Explain java coding standards for classes or java coding conventions for classes?

0 Answers  


how can i connect to database in a applet ?

1 Answers  


What are the four pillars of java?

0 Answers  


What are different data structures in java?

0 Answers  


Why are lists ordered in java?

0 Answers  






What are inner and anonymous class?

3 Answers  


What is busy spin, and why should you use it?

0 Answers  


Does .length start 0 java?

0 Answers  


What is the program development process?

0 Answers  


what is the use of finalize()Method please explain with an example

3 Answers  


What about method local inner classes or local inner classes in java?

0 Answers  


Explain serialization and deserialization in java?

0 Answers  






Categories