Review Questions
1: | List three examples of typical exceptions. |
2: | What are the advantages of handling exceptions with try-catch-finally? |
3: | Which class is at the top of the exceptions class hierarchy? |
4: | How many catch and finally blocks can be attached to a try block? |
5: | What happens to normal execution flow when an exception is thrown inside a try block? |
6: | How can a catch block match an exception? |
7: | If no abnormal conditions were experienced, where is the flow of execution transferred after a try block has finished executing? |
8: | What happens if an exception is thrown in a try block but no matching catch blocks are found? |
9: | What happens if a catch block throws an exception? |
10: | What is the purpose of the finally block? |
11: | Which class must you derive from to ... |
Get C# Primer Plus now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.