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...


What happens if an exception is throws from an object's
constructor and from object's destructor?

Answers were Sorted based on User's Feedback



What happens if an exception is throws from an object's constructor and from object's de..

Answer / rajesh

exception from object's destructor - could terminate the
program while stack unwinding.

Is This Answer Correct ?    2 Yes 0 No

What happens if an exception is throws from an object's constructor and from object's de..

Answer / achal ubbott

If an exception is generated by constructor of the class
that object is not created. That means if you do

delete obj_ptr;
the destructor would not be called.

Is This Answer Correct ?    1 Yes 0 No

What happens if an exception is throws from an object's constructor and from object's de..

Answer / reegan

if an exception is throws from object constructor, it is
caught by catch block .the same thing is happen in the objects
destructor.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C++ General Interview Questions

Can we change the basic meaning of an operator in c++?

0 Answers  


What are iterators in c++?

0 Answers  


Which function cannot be overloaded c++?

0 Answers  


How to access a variable of the structure?

0 Answers  


what do you mean by memory management operators

4 Answers   HCL,


Write is a binary search tree? Write an algo and tell complexity?

0 Answers   Axtria,


What is the best free c++ compiler for windows?

0 Answers  


Explain all the C++ concepts using examples.

0 Answers   InterGraph,


What are the conditions that have to be met for a condition to be an invariant of the class?

1 Answers  


sizeof- is it functioning statically or dynamically?

2 Answers  


What is object in c++ example?

0 Answers  


Describe the process of creation and destruction of a derived class object?

0 Answers  


Categories