Multiple choice technology programming languages

NullPointerException is a checked exception

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

NullPointerException is an unchecked exception in Java because it inherits from RuntimeException. Checked exceptions must be declared in a method's throws clause or handled in a try-catch block, whereas unchecked exceptions represent programming errors occurring at runtime that do not require explicit handling.