What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available?
Answer Posted / vinayakkatkar
There are some exceptions that are not defined by java api
ex- invalid age exception ,invalid number exception etc.
in user defined exceptions are raised by programmer,
thrown by programmer ,handled by programmer
while predefined exceptions are raised by system,
thrown by system
handled by programmer
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the main uses of the super keyword?
Can private method static?
How many bits are in a sentence?
When should the method invokelater() be used?
Explain about version control?
Explain covariant method overriding in java.
What does || mean in vectors?
hr interview how many minutes asking question
How is hashset defined in java?
How will you get the platform dependent values like line separator, path separator, etc., ?
Is 9 a prime number?
How can you write a loop indefinitely in java programming?
What is * argv?
Does google use java?
What is Java Reflection API? Why it’s so important to have?