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
Can we create object of abstract class?
What is abstraction in oops with example?
What is polymorphism what is it for and how is it used?
Why do we need polymorphism in c#?
What is methods in oop?
any one please tell me the purpose of operator overloading
What are classes oop?
What is coupling in oops?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is multilevel inheritance in oop?
can we make game by using c
Can enum be null?
What is variable example?
Can you inherit a private class?
What is overriding in oop?