Which of these is an unchecked exception in Java?
Correct answer D. NullPointerException
Explanation
Unchecked exceptions are RuntimeException, Error and their subclasses, and NullPointerException extends RuntimeException. The compiler does not force code to catch or declare them. IOException, SQLException and InterruptedException are checked, so a method must handle them or list them in its throws clause, and failing to do so is a compile-time error.
Answer checked How we write and check questions
Discussion