An exception is an event, which occurs during the execution of a program, that discontinues the normal flow of program and prevents the program from executing further.