exception

An exception occurs during the execution of a program, that disrupts the normal flow of the program's instructions. 
* Checked exceptions are also known as compile-time exceptions as these exceptions are checked by the compiler during the compilation process to confirm whether the exception is handled by the programmer or not. If not, then the system displays a compilation error.
* Unchecked exceptions are those exceptions that occur during the execution of the program. Hence they are also referred to as runtime exceptions. These exceptions are generally ignored during the compilation process. They are not checked while compiling the program. For example, programming bugs like logical errors, and using incorrect APIs.

Most languages only support unchecked exceptions; only Java supports checked exceptions also.