Explain how an exception handler is defined and invoked in a Program.
Answer / Rahul Kumar Singh
An exception handler is defined using try, catch, and throw keywords. A try block contains the code that may throw exceptions. One or more catch blocks follow the try block and handle the exceptions of specific types. The throw keyword is used to generate an exception.
| Is This Answer Correct ? | 0 Yes | 0 No |
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
Is there any problem with the following: char *a=NULL; char& p = *a;?
Write a program to show polymorphism in C++?
Describe the advantages of operator overloading?
Can a list of string be stored within a two dimensional array?
Why do we use structure in c++?
How to give an alternate name to a namespace?
What is the use of bit fields in structure declaration?
What is the role of C++ shorthand's?
Can we make copy constructor private in c++?
what are function pointers?
Who invented turbo c++?