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 importance of main method in Java?
How many inner classes can a class have?
Can private class be inherited in java?
Why is java called java?
Is java same as core java?
What is final modifier?
Is this valid in java ? Can we instantiate interface in java?
How does a cookie work in Servlets?
What mechanism does java use for memory management?
What does void * mean?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What are different types of states exist for a thread?
What is the difference between serializable and externalizable interface?
What is passed by reference and pass by value ?
What is illegal identifier in java?