Checked vs Unchecked
Understand the difference between checked and unchecked exceptions in Java.
Intro
Java exceptions come in two families: checked and unchecked. Knowing the difference helps you design methods correctly.
Checked exceptions
Checked exceptions extend Exception (but not RuntimeException). The compiler forces you to handle or declare them with throws.
All lessons in this course
- try/catch/finally
- Checked vs Unchecked
- Reading Stack Traces