← Quiz: Java Exception Handling: all 10 questions
Quiz: Java Exception Handling · Question 2 of 10
Which is a checked exception?
Which is a checked exception?
- A.NullPointerException
- B.ArithmeticException
- C.IOException
- D.ArrayIndexOutOfBoundsException
Answer & explanation
Correct answer: IOException
IOException extends Exception (not RuntimeException), so the compiler forces you to handle it.
Can you get the rest right without peeking?
Take the timed Quiz: Java Exception Handling quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →