Skip to content
Sharp

Exceptions · interview question

Which of the following blocks is always executed in a try-catch structure?

Multiple choiceEasychapter-6-curatedpremiumexceptionsexceptions-basics
Choose one answer
Answer and explanation

Correct answer

D. Finally

Why

The finally block is always executed after the try and catch blocks, regardless of whether an exception was thrown, making it ideal for cleanup operations like closing resources.

Test yourself on Exceptions

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

Start free test
All Exceptions questions →