Which of the following statements are correct about Catch handler?i. It must be placed immediately after the try block v. General catch handler can be kept anywhere after try block.

🎲 Try a Random Question  |  Total Questions in Quiz: 161  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
C++ Programming Practice Test: Derived Classes, Templates & Exception Handling in C++ — practice the complete quiz, review flashcards, or try a random question.

C++ quiz on different types of classes like abstract, derived and their hierarchies, different types of templates like simple string and function and their derivation and specialization. Also contains questions on error and exception handling, different types of exceptions and their resource management. Here are some key concepts about derived classes, templates, and exception handling in C++: Derived Classes A derived class is a class that inherits from another class, known as the base class. The derived class inherits all of the public and protected members of the base class, and can... Show more

Which of the following statements are correct about Catch handler?<br>i. It must be placed immediately after the try block <br>v. General catch handler can be kept anywhere after try block.