Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.

2 Answers   CTS, Delhi University,


Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.

6 Answers  


what is the new version of c++

1 Answers   Ignou, Pramata, Satyam,


What causes polymorphism?

0 Answers  


What is difference between function overloading and overriding?

1 Answers   emc2,


Write a program to find out the number of palindromes in a sentence.

1 Answers   TCS,


How to use CMutex, CSemaphore in VC++ MFC

0 Answers   Persistent, TCS,


why to use template classes in c++?

1 Answers  


Please tell me the oops concept with detailed answer

9 Answers   EEE,


What are generic functions and generic classes?

5 Answers  


What is object and example?

0 Answers  


What is the main purpose of inheritance law?

0 Answers  


Categories