Checked exceptions are checked at compile-time, requiring handling or declaration.
Checked exceptions, like 'IOException', must be either caught or declared in the method signature. This ensures the developer explicitly considers potential error conditions, promoting safer code. For instance, file operations often throw 'IOException', which must be managed to prevent compilation errors.
Additional Notes
Explain the concept of a checked exception with an example?