What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available?
Answer Posted / sri
if you want you could specify your own exception that you
know is gonna happen otherwise it is recommended to handle
the exception through exception class in catch block.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is an objects lock and which objects have locks? : Java thread
What is package protected in java?
What is supplier in java?
Which java collection does not allow null?
How do you clear an arraylist in java?
What is the use of arraylist in java?
What is nested class?
Is simpledateformat safe to use in the multithreaded program?
Is sizeof a keyword in java programming?
Define how destructors are defined in java?
What is hotjava?
Is 0 an even number?
Explain about complier design(phases)
Tell me about different OOPS concepts.
Are arrays dynamic in java?