Skip to content
Sharp

Performance Tuning · interview question

Why do teams use a thread dump (jstack) when diagnosing application performance issues in production code?

Multiple choiceEasychapter-14-curatedpremiumperformance-tuningthread-dumps
Choose one answer
Answer and explanation

Correct answer

A. Identifying the current state and stack trace of each thread

Why

A thread dump provides the current state and stack traces of all threads in a Java process. This is useful for diagnosing issues such as deadlocks, infinite loops, or excessive blocking.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →