Checked vs. Unchecked Exceptions June 23, 2005Posted by javafoo in java exceptions, java interview, javanotes.
- Checked exceptions are checked at compile time (not exactly checked, but the compiler knows will occur since they are declared as being thrown during compile time), so the compiler will crib if you don’t handle them.
- Unchecked exceptions only occur at runtime, mostly extend RuntimeException, these can’t be checked, usually occur due to program errors, such as NullPointerException
- There have been holy wars waged over this topic.