Skip to content
Sharp

Core Java · interview question

Why does catching an exception and not rethrowing it change runtime behavior?

Multiple choiceMediumchapter-6-curatedpremiumcore-javathrow-throws-and-propagation
Choose one answer
Answer and explanation

Correct answer

B. The exception is considered handled.

Why

Catching an exception and not rethrowing it means the exception is considered handled, and the program continues execution. However, it may hide the error, so it's important to handle it meaningfully.

Test yourself on Core Java

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

Start free test
All Core Java questions →