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
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
What is a module function?
What is the association?
What is oop principle in java?
What is difference between == and === in js?
Can we restart a dead thread in java?
What is the file type?
What does \ mean in regex?
What is the symbol for line break?
Name some classes present in java.util.regex package.
What is the maximum size of arraylist in java?
What are the 5 types of research methods?
What is function and its uses?
How does multithreading take place on a computer with a single cpu?
How do you implement tree mirroring in java?