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

How do you explain polymorphism?

586


Can you name some types of inheritance?

639


Write a c++ program to display pass and fail for three student using static member function

2810


What is polymorphism in oops with example?

525


What is polymorphism and example?

590






What is polymorphism programming?

601


What is pointer in oop?

534


How do you use inheritance in unity?

588


What does oop mean in snapchat?

680


Why do we use class?

633


What is overriding in oops?

599


Can we create object of interface?

601


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1979


How does polymorphism work?

635


Why is polymorphism used?

581