Errors and Exceptions 1.19
1.8.2 Exceptions
Exceptions, on the other hand, are unusual conditions that occur at run time and can lead to
errors that can crash a program. The exceptions can be classified as follows.
Synchronous exceptions, that is, those that can be predicted. For example, array index
going outside the permissible values can be easily detected because such errors occur only
when you have executed the statement involving array index. The synchronous exception can
occur at any one or more of the following situations:
• Memory allocation exception
• IO handling exception
• Maths handling exception like division by zero
Asynchronous exceptions, those that cannot be predicted. Generally, the resources
required for the programs are ...