Checked vs. Unchecked Exceptions

Java distinguishes between checked exceptions and unchecked exceptions. This distinction is important, because the Java compiler enforces special requirements for checked exceptions (discussed momentarily). An exception’s type determines whether it’s checked or unchecked.

Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.