How is exception handling carried out in c++?

Answers were Sorted based on User's Feedback



How is exception handling carried out in c++?..

Answer / rajesh manem

Using try and Catch blocks the exceptions are handling C++.
We can write our own defined class and we can handle the
exception.Using throw it will throw the exception t the
calling method/class. The throws keyword is used to tell
this method may throw these type of exceptions.We can throw
any exception what ever you like including class objects.

Is This Answer Correct ?    10 Yes 1 No

How is exception handling carried out in c++?..

Answer / debika mohapatra

EXCEPTION handling was not part of the origin c++.it is a
new feature added to ANSI c++.today,almost all compilers
support this feature.

Is This Answer Correct ?    7 Yes 5 No

How is exception handling carried out in c++?..

Answer / achal ubbott

Exception handling is not a must of programming. But it is
a cleaner way of getting signal if something goes wrong in
the code. Prior to exceptions people used return values of
functions for reporting errors to application using the
classes inside libraries. The application would call some
function(defined inside class) from within try bock. Now if
something goes wrong then the function(defined inside the
class) would throw an exception. This exception is then
handled by catch block in the application.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is the different between Applet and Application?

2 Answers  


difference between class and object

10 Answers   Chandan, IBM, Magic Soft,


create a c++ program that will ask 10 numbers and display their sum using array.

1 Answers  


write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers  


What is the important feature of inheritance?

0 Answers   BPL,






What is class encapsulation?

0 Answers  


What is operator overloading? Give Example

11 Answers   CTS, IBM, TCS,


1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 Answers  


What is data binding?

4 Answers   Ittiam Systems,


What is extreme programming?

2 Answers  


What is abstract class in oop?

0 Answers  


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

0 Answers   UBS,


Categories