C++ MQCs with Explanation ( EXCEPTION HANDLING)

When an exception occurs inside a catch block, what happens?

  1. The exception is caught by the same catch block
  2. The exception is caught by the next catch block in the group
  3. It will be passed on to the next try / catch sequence for processing
  4. The execution will terminate



Answer: 
Option b: The exception is caught by the next catch block in the group

Explanation Here

Post a Comment

0 Comments