Skip to content
Sharp

JVM Architecture · interview question

During high traffic, like Black Friday, which JVM GC strategy can help manage memory effectively by minimizing long stop-the-world pauses?

Multiple choiceHardchapter-14-curatedpremiumjvm-architectureclass-loading
Choose one answer
Answer and explanation

Correct answer

A. G1GC

Why

G1GC (Garbage-First Garbage Collector) is designed to manage large heaps with a focus on minimizing pause times, making it suitable for high-traffic scenarios. It divides the heap into regions and prioritizes garbage collection in areas with the most garbage.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →