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

1 thought on “What is meant by exception specification?”

  1. a
    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.

Leave a Comment