Answer Posted / 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 |
Post New Answer View All Answers
What is this pointer in oop?
What is difference between abstraction and encapsulation?
what is different between oops and c++
What is the main feature of oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
Can we override main method?
What is meant by oops concept?
What is overloading in oops?
What is property in oops?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Why is object oriented programming so hard?
How to improve object oriented design skills?
What is class and object with example?
What are the 4 pillars of oop?
Is enum a class?