PPT Slide
Exception Handling: the modern programming concept for dealing with run-time errors
Exception: “a run-time event that may cause a method to fail or to execute incorrectly”
Purpose of Exception Handling:
“to allow graceful handling of and recovery from run-time errors”
Common examples in Java:
- NullPointerException
- ArithmeticException
- ArrayIndexOutOfBoundsException
- Java API contains over two dozen exceptions
Exceptions and Exception Handling