What is meant by throwing an Exception?
Answer Posted / jagadeesh
throwing the exception is nothing but collect all the error
releated info into the single and throw that objet into the
caller area
it contains all exception releated info
And most importantly it is the responsibility of the caller
to handle the exception by using try , catch blocks
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can I declare class as static or private?
Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?
Can we have try block without catch block?
How to restrict a member of a class from inheriting by its sub classes?
Can we override the overloaded method?
What are some examples of variable costs?
What is the declaration statement?
What is charat ()?
What is wrapper class example?
What is a class component?
Why singleton pattern is better than creating singleton class with static instance?
Can we declare the static variables and methods in an abstract class?
What is the difference between an array and an array list?
What is the base class of all exception classes in java?
What do you mean by light weight and heavy weight components?