Skip to content
Sharp

Performance Tuning · interview question

What happens during a 'Stop-The-World' pause in the JVM?

Multiple choiceEasychapter-14-curatedpremiumperformance-tuningstop-the-world-pauses
Choose one answer
Answer and explanation

Correct answer

B. All application threads are paused for garbage collection.

Why

During a 'Stop-The-World' pause, all application threads are halted so that the JVM can perform garbage collection safely. This ensures consistency of the heap memory during the collection process.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →