🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.NullPointerException
  2. B.ArithmeticException
  3. C.IOException
  4. 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 →