Multiple choice technology web technology

Garbage collection guarantee that a program will not run out of memory.

  1. True

  2. False

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

Garbage collection only reclaims memory from objects that are no longer referenced. It does not prevent out-of-memory errors - if your program creates objects faster than GC can reclaim them, or holds onto too many live objects, it will still run out of memory. GC manages memory but doesn't guarantee unlimited availability.