Skip to content
Sharp

Memory Management · interview question

What happens during a 'Stop-The-World' pause in Java garbage collection?

Multiple choiceEasychapter-14-curatedpremiummemory-managementstack-vs-heap
Choose one answer
Answer and explanation

Correct answer

D. All application threads are paused.

Why

During a 'Stop-The-World' pause, all application threads are temporarily halted to allow the garbage collector to reclaim memory and perform necessary housekeeping without interference from running application code.

Test yourself on Memory Management

A free test with instant, explained results. No account needed.

Start free test
All Memory Management questions →