Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

H. Exception Handling: A Deeper Look > H.2. Example: Divide by Zero without Exc... - Pg. 758

758 Appendix H Exception Handling: A Deeper Look H.1 Introduction H.2 Example: Divide by Zero without Exception Handling H.3 Example: Handling ArithmeticException s and InputMismatchException s H.4 When to Use Exception Handling H.5 Java Exception Hierarchy H.6 finally Block H.7 Stack Unwinding and Obtaining Information from an Exception Object H.8 Wrap-Up Self-Review Exercises | Answers to Self-Review Exercises | Exercises H.1 Introduction An exception is an indication of a problem that occurs during a program's execution. Ex- ception handling enables you to create applications that can resolve (or handle) exceptions. In many cases, handling an exception allows a program to continute executing as if no problem had been encountered. The features presented in this appendix help you write ro- bust programs that can deal with problems and continue executing or terminate gracefully. H.2 Example: Divide by Zero without Exception Handling