Skip to content
Sharp

Performance Tuning · interview question

Why does a memory leak on JVM performance change runtime behavior?

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

Correct answer

A. It gradually reduces available memory, causing increased GC activity.

Why

A memory leak reduces available memory over time, leading to increased garbage collection activity as the JVM attempts to reclaim memory. This can degrade application performance and eventually cause an OutOfMemoryError.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →