Skip to content
Sharp

Performance Tuning · interview question

Which diagnostic tool is used to capture a snapshot of all JVM threads?

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

Correct answer

C. Jstack

Why

The jstack tool is used to capture a snapshot of all threads in a JVM. This provides insight into thread states and helps diagnose issues related to thread contention or deadlocks.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →