Answer Posted / 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 |
Post New Answer View All Answers
What is class and object in oops?
Why is abstraction used?
What is polymorphism used for?
How do you achieve runtime polymorphism?
What is inheritance write a program to show use of inheritance?
what is the drawback of classical methods in oops?
What is encapsulation oop?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is solid in oops?
class type to basic type conversion
What is difference between oop and pop?
Why is polymorphism used?
What is basic concept of oop?
Why is oop useful?
Can enum be null?