Checked vs Unchecked Exceptions in Java
🟢 Beginner Level | Java Core Syntax
📖 Definition
Checked Exceptions (e.g. IOException) are verified at compile-time. Unchecked Exceptions (e.g. NullPointerException) occur at runtime.
âš¡ Code Example
// Unchecked ArithmeticException
int res = 10 / 0;
🧠Navigation
← 01. Throwable Hierarchy | Module Hub | 03. Try-Catch-Finally Blocks →