Skip to content
Sharp

Performance Tuning · interview question

Which of the following scenarios might lead to a 'stop-the-world' pause, even when using a collector like ZGC?

Multiple choiceHardchapter-14-curatedpremiumperformance-tuningoutofmemoryerrors
Choose one answer
Answer and explanation

Correct answer

B. A large number of finalizer objects queued.

Why

Even with low-latency collectors like ZGC, certain operations, such as processing a large queue of finalizer objects, can trigger a 'stop-the-world' pause. These pauses are necessary to handle global synchronization tasks.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →