Skip to content
Sharp

Exceptions · interview question

Which statements about finally are true? Select all that apply.

Select all that applyMedium
Select all that apply
Answer and explanation

Correct answer

  • A. It runs whether or not an exception is thrown in the try block.
  • B. A return inside finally overrides a return in the try block.
  • D. A try block can have a finally block without any catch block.

Why

Avoid return and throw in finally; both can silently discard the original exception.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →