Multiple choice technology programming languages

The garbage collector will run immediately when the system runs out of memory.

  1. True

  2. False

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

The garbage collector runs when the JVM decides it's needed, not immediately upon memory exhaustion. If the JVM cannot reclaim enough memory, it throws an OutOfMemoryError rather than guaranteeing immediate GC execution.