InterviewSolution
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 exceptions |
|
Answer» Correct choice is (a) A function is limited to throwing only a specified list of exceptions Easiest explanation - C++ provides a mechanism to ensure that a given function is limited to throwing only a specified list of exceptions. It is called an exception specification. |
|