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
How many ways can we create the string object?
Does list allow duplicates in java?
What are 3 data types?
What happens if I remove static from main method?
How can we find the actual size of an object on the heap?
How do you find the independent variable?
What is a parameter in simple terms?
Explain a situation where finally block will not be executed?
What is parsing in grammar?
What is the difference between superclass and subclass?
What is the gregoriancalendar class in java programming?
How to find the largest value from the given array.
What is command line argument
What is ‘has a’’ relationship in java?
What is boolean used for?