Skip to content
Sharp

Core Java · interview question

What does executing a throw statement inside a catch block evaluate to?

Multiple choiceMediumchapter-6-curatedpremiumcore-javacode-reading-with-exceptions
Choose one answer
Answer and explanation

Correct answer

A. The exception is rethrown to the caller.

Why

When a throw statement is executed inside a catch block, the exception is rethrown to the caller. The finally block will still execute before control is returned to the caller.

Test yourself on Core Java

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

Start free test
All Core Java questions →