<<< | Index | Handling problems within a program >>> |
Exceptions definition:
an occurrence of an undesirable situation that can be detected during program execution.
The exception-aware program converts such undesirable occurrence into a recognizeable event, and then handles this event to manage the situation.
Examples:
Division by zero
Trying to open an input file that does not exist
An array index that goes out of bounds
<<< | Index | Handling problems within a program >>> |