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 notify and notifyall method?
What is meant by nested loop?
Can you explain the private protected field modifier?
What is meant by collection in java?
What is the differences between c++ and java? Explain
What are the two ways in which thread can be created?
How do you create a null object?
Why doesn't the java library use a randomized version of quicksort?
What are the advantages of compiled language?
Difference between method overloading and method overriding in java ?
What is meant by class?
What is an abstract class and what is it’s purpose?
what is a green thread? : Java thread
Give any two differences between C++ and java.
How would you dynamically allocate memory to an array?