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 write your own custom-made exception classes? |
12: | Is the following try-finally construct valid? If so, why would you ever want to implement it? try { ...} finally { ...} |
13: | Is the following try-catch construct valid? Why or why not? try { ...} catch (System.Exception exObj) { ...} catch (System.IndexOutOfRangeException exObj) { ...} |
14: | What happens if an exception finds no matching catch blocks in your program? |