How is exception handling carried out in c++?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / debika mohapatra
EXCEPTION handling was not part of the origin c++.it is a
new feature added to ANSI c++.today,almost all compilers
support this feature.
| Is This Answer Correct ? | 7 Yes | 5 No |
Answer / achal ubbott
Exception handling is not a must of programming. But it is
a cleaner way of getting signal if something goes wrong in
the code. Prior to exceptions people used return values of
functions for reporting errors to application using the
classes inside libraries. The application would call some
function(defined inside class) from within try bock. Now if
something goes wrong then the function(defined inside the
class) would throw an exception. This exception is then
handled by catch block in the application.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is basic concept of oop?
What is difference between data abstraction and encapsulation?
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
Explain virtual inheritance?
What is the main difference between C++ and Java
can you explain how to use JavaBean in Project
why we are declare the function in the abstract class even though we are declaring it in Derived class?
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
What is extreme programming?
Write a program to sort the number with different sorts in one program ??
Differences between inline functions and non-inline functions?
create a c++ program that will ask 10 numbers and display their sum using array.