logo image
Search
Navigation menu
logo avatar
exception

Exception

In Java, an exception is an event that occurs during the execution of a program, interrupting the normal flow of the code. When an exception occurs, Java creates an exception object that represents the error and halts the execution of the program if it is not handled.