Skip to content
Sharp

Performance Tuning · interview question

How would you explain a key advantage of the Z Garbage Collector (ZGC) over traditional garbage collectors in an interview?

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

Correct answer

A. Sub-millisecond pause times

Why

ZGC is designed to provide sub-millisecond pause times by performing most operations concurrently with the application threads. This reduces the impact of garbage collection on application performance, especially under high load.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →