Skip to content
Sharp

Garbage Collection · interview question

What does the 'jmap -heap' command display?

Multiple choiceMediumchapter-14-curatedpremiumgarbage-collectiongenerational-gc
Choose one answer
Answer and explanation

Correct answer

D. Details about the memory management settings.

Why

The 'jmap -heap' command provides details on the memory management settings for a Java process, including the heap configuration, garbage collection statistics, and memory pool usage.

Test yourself on Garbage Collection

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

Start free test
All Garbage Collection questions →