Checked exceptions must be caught or declared (throws). Unchecked (RuntimeExceptions) do not require mandatory handling.
← Java theorytheory 0/50 · 0%
Fundamentals · easy
11. Checked vs Unchecked Exceptions
Compile-time vs Runtime errors.
Check your understanding
1. Is NullPointerException checked?
2. Which keyword declares a checked exception in a method signature?