0Pricing
Java Academy · Lesson

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

  1. try/catch/finally
  2. Checked vs Unchecked
  3. Reading Stack Traces
← Back to Java Academy