Exception Handling
Exception Handling
In Java
Errors:
Handled to create reliable applications
Result of application bugs
Beyond the control of the application
Exceptions:
An error that occurs at runtime
Abnormal behavior that leads to unpredictable result
Disrupts the normal flow of application execution
Exception Handling
java.lang.Throwable class:
Parent class of all exceptions, as shown in the following figure.
Categories of Exceptions
Unchecked exceptions:
java.lang.RuntimeException
java.lang.Error
Occur during the execution of
application &discovered by using the
try-catch statement
Some RuntimeExceptions:
ArrayIndexOutOfBoundsException
NullPointerException
ArithmeticException
Unchecked Exceptions
Text Books:
Kanetkar Y., “Let Us C”, BPB Publications.
Schildt H., “C- The Complete Reference”, McGraw-Hill.
Web references:
https://www.programiz.com/c-programming
https://www.w3schools.com/c/c_intro.php
https://www.geeksforgeeks.org/c-programming-language/
https://www.tutorialspoint.com/cprogramming/index.htm
Thank You