Multiple choice technology programming languages

An object can be reachable again when it is garbage collected.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Once an object is garbage collected, it becomes permanently unreachable. An object cannot be resurrected or made reachable again after garbage collection. If you need to reclaim resources, use finalization or try-with-resources instead.

AI explanation

False. Garbage collection reclaims memory precisely because the object is unreachable — once the GC has collected (finalized and freed) an object, that object's memory is gone and it cannot become reachable again. An object can become unreachable, be resurrected via finalizer tricks, and briefly become reachable again before actual collection, but once truly collected there's no path back to it. The statement as given conflates 'about to be collected' with 'already collected,' making it false.