Multiple choice technology programming languages

An object becomes eligible for Garbage Collection when there are very few threads that can access it.

  1. True

  2. False

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

An object becomes eligible for garbage collection only when there are no live threads holding active references to it, not simply when the number of accessing threads is low. If even a single active thread holds a reference, the object remains reachable and cannot be garbage collected.