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 the difference between member variables initialization and assignment in a constructor?
What is local class in java?
What is linked hashset and its features?
What is the basic concepts of OOPS?
What comes to mind when someone mentions a shallow copy in java?
What is the difference between a local variable and an instance variable?
How to invoke external process in java.
What is OOP Language?
What is data type in java?
What are the various access specifiers in java?
What is basic syntax?
What is difference between char array and string?
What is an example of procedure?
What is preflight request?
In a container there are 5 components. I want to display the all the components names, how will you do that one?