7.2 Errors and Exceptions in Java and Multithreaded Programming
7.2 Errors and Exceptions
Errors that can be cropping up in a program are of three types. They are as follows:
• Syntactical errors: Can be easily detected and corrected by compilers.
• Logical errors : Arise due to programmer not understanding the flow of logic. This can
be corrected by extensive testing.
• Bugs : These can be fixed by the programmer using the available assert() macros
and debuggers.
Exceptions, on the other hand, are unusual conditions that occur at run time and can lead
to errors that can crash a program. Exceptions can be classified as follows.
7.3 Termination or Presumptive/Resumption Models
There are two methodologies for exception handling mechanism as follows: ...