Saved Bookmarks
| 1. |
What is meant by exception specification?(a) A function is limited to throwing only a specified list of exceptions(b) A catch can catch all types of exceptions(c) A function can throw any type of exceptions(d) A try can catch all types of exceptionsThis question was posed to me during a job interview.This key question is from Exception Specifications topic in section Derived Classes, Templates & Exception Handling in C++ of C++ |
|
Answer» Correct choice is (a) A function is LIMITED to THROWING only a SPECIFIED list of EXCEPTIONS |
|