Course Contents:
1. Error
and exception
2. Types
of exception
3. Mechanism
for exception handling
Error
It is
common to make mistakes while developing as well as typing a program. A mistake
might lead to an error causing the program to produce unexpected results. An
error may produce an incorrect output or may terminate the execution of the
program abruptly of even may cause the system to crash. It is therefore
important to detect and manage properly all the possible error conditions in
the program so that the program will not terminate or crash during execution.
Types
of errors
Errors
are broadly classified into two categories:
-
Compile time errors
-
Run-time errors