What is an Exception?

An exception is an event that disrupts the normal execution of a program.

Example:

int a = 10 / 0;

Enter fullscreen mode