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
Does list maintain insertion order java?
What are the basic interfaces of java collections framework?
What does indexof return in java?
What is a line separator in java?
what is synchronization and why is it important? : Java thread
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
What are java annotations?
How do you check if a string contains only numeric digits?
Explain OOPs concept.
How can you share data between two thread in Java?
Why is java so popular?
What is java util?
Can we use catch statement for checked exceptions?
Write an algorithm for quick sort?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?