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
State what is encapsulation and friend function?
how to get the oracle certification? send me the answer
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is the important feature of inheritance?
What is cohesion in oop?
What is the difference between procedural programming and oops?
What is abstraction and encapsulation?
Why do we need oop?
What is abstraction in oop with example?
What is difference between polymorphism and inheritance?
Whats is abstraction in oops?
What is interface in oop?
What is class and object with example?
What is the difference between encapsulation and polymorphism?
What is the real life example of polymorphism?