How is exception handling carried out in c++?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this pointer in oop?

789


What is difference between abstraction and encapsulation?

811


what is different between oops and c++

2191


What is the main feature of oop?

897


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2305


Can we override main method?

835


What is meant by oops concept?

778


What is overloading in oops?

835


What is property in oops?

785


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1887


Why is object oriented programming so hard?

823


How to improve object oriented design skills?

756


What is class and object with example?

815


What are the 4 pillars of oop?

887


Is enum a class?

792