Loading…
Loading…
Ten exam-style questions on recognizing common Java exceptions: ArithmeticException, index and cast exceptions, NullPointerException, IllegalArgumentException and NumberFormatException, checked IOException and ParseException, and errors from static initializers and recursion, with explanations.
Practice questions for the article Java Common Exception Classes: Runtime, Checked and Error Types on the Exam.
Decide which exception is thrown, whether it's checked, and how it relates to other exception classes. Aim for at least 8 out of 10.
Quiz path: step 77. Take the quizzes in this order, after reading each article.
Previous quiz: Checked and Unchecked Exceptions (OCP 21)
Next quiz: try, catch, multi-catch and finally (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.