throw Can constructors exceptions?



throw Can constructors exceptions?..

Answer / nashiinformaticssolutions

Yes, constructors can throw exceptions, but the object won't be created.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1

4 Answers   Quark,


Difference between an inspector and a mutator

0 Answers  


Compare compile time polymorphism and Runtime polymorphism

1 Answers  


How does c++ structure differ from c++ class?

0 Answers  


Why is c++ still used?

0 Answers  


Refer to a name of class or function that is defined within a namespace?

0 Answers  


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

0 Answers  


Explain the concept of inheritance in C++.

3 Answers  


What is the difference between method and message?

5 Answers   HP,


Can you sort a set c++?

0 Answers  


What is a forward referencing and when should it be used?

0 Answers  


What do you mean by enumerated data type?

0 Answers  


Categories