CSC207H1 Lecture : oct17c.docx
31 views1 pages
Document Summary
Why was that code bad: the situation that the exception reports is not exceptional, it"s uncharacteristic. Real uses of exceptions aren"t local throw and catch aren"t generally in the same block of code. The finally clause is always executed, whether an exception was thrown or not, and whether or not the thrown exception was caught. Not an exsuba is thrown: } catch (exsubb e) , // we never do this, even if an exsubb is thrown, } finally , // we always do this, even if no exception is thrown.
Get access
Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers