January 2014
Intermediate to advanced
736 pages
70h 43m
English
An exception indicates a problem that occurs while a program executes. The name “exception” suggests that the problem occurs infrequently—if the “rule” is that a statement normally executes correctly, then the problem represents the “exception to the rule.” Exception handling enables you to create fault-tolerant programs that can resolve (or handle) exceptions. In many cases, this allows a program to continue executing as if no problems were encountered. For example, the StudentPoll application still displays results (Fig. E.7), even though one of the responses was out of range. More severe problems might prevent a program from continuing normal execution, instead requiring the program to ...
Read now
Unlock full access