Loading…
Loading…
Ten exam-style questions on try and catch syntax, ordering chained catch blocks, multi-catch rules, finally execution order, return values with finally, exceptions thrown from finally, System.exit and precise rethrow, with explanations.
Practice questions for the article Java try/catch: Chaining catch Blocks, Multi-catch and finally.
Trace the blocks in order, and remember that finally gets the last word. Aim for at least 8 out of 10.
Quiz path: step 78. Take the quizzes in this order, after reading each article.
Previous quiz: Common Exception Classes (OCP 21)
Next quiz: try-with-resources and Suppressed Exceptions (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.