Can a constructor throw a exception? How to handle the error when the constructor fails?



Can a constructor throw a exception? How to handle the error when the constructor fails?..

Answer / neelam saini

The constructor never throws a error.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Why is it called c++?

0 Answers  


What is the difference between a type-specific template friend class and a general template friend class?

0 Answers  


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

0 Answers  


What about Virtual Destructor?

1 Answers   Virtusa,


Is recursion allowed in inline functions?

0 Answers  






Difference between class and structure.

0 Answers  


Can a program run without main function?

0 Answers  


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

0 Answers   Honeywell,


Write about the scope resolution operator?

0 Answers  


What is difference between rand () and srand ()?

0 Answers  


write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX

1 Answers  


When must you use a pointer rather than a reference?

0 Answers  


Categories