Java theorytheory 0/50 · 0%
Fundamentals · easy

11. Checked vs Unchecked Exceptions

Compile-time vs Runtime errors.

Checked exceptions must be caught or declared (throws). Unchecked (RuntimeExceptions) do not require mandatory handling.

Check your understanding

  1. 1. Is NullPointerException checked?

  2. 2. Which keyword declares a checked exception in a method signature?