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
Which package is imported by default?
what is a green thread? : Java thread
What is literal example?
What do you mean by an object in java?
What is array pointers ?
What is the difference between a scrollbar and a scrollpane?
What is hasnext in java?
What are java threads?
Write a code to show a static variable?
What happens if constructor is private?
How many types of classes are there in java?
Why are the destructors for base class and derived class called in reverse order when the program exits
How many decimal digits is 64 bit?
What are data types in programming?
What is difference between static class and normal class?