what is the difference between a checked exception and an unchecked exception?
There are two types of exceptions: checked exception and unchecked exception. ... The main difference between checked and unchecked exception is that the checked exceptions are checked at compile-time while unchecked exceptions are checked at runtime.