PRACTICE / UNDERSTAND / REPEAT

Java practice question

Practice exceptions with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

1 questionAnswers explainedFree · no login

Try this question

Exceptions · MCQQuestion link ↗

Which block runs whether or not a `try` block throws?

Choose one answer
Answer & explanation

Answer: finally

`finally` normally runs after `try`/`catch`, making it useful for cleanup.