An exception is an event that disrupts the normal execution of instructions.
Instead of letting the entire program crash abruptly, Java wraps the error details (such as the error name, description, and program state) into an exception object.
Loading…