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
Which block runs whether or not a `try` block throws?
Answer & explanation
Answer: finally
`finally` normally runs after `try`/`catch`, making it useful for cleanup.