Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

checked exception

An exception the compiler makes you catch or declare, such as IOException.

Every Throwable except RuntimeException, Error and their subclasses is checked; code that can throw one must catch it or list it in a throws clause.

Examples

  • Files.readString(path) declares throws IOException, so the caller must catch or declare it.

Read the full section →