Multiple choice technology operating systems

The Garbage Collector completely prevents memory leaks in a program

  1. True

  2. False

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

The Garbage Collector only prevents leaks from unreferenced objects. If your code maintains unnecessary references to unused objects (like in static collections or unclosed resources), those objects cannot be collected and cause memory leaks.