Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example?
Answer Posted / saf
You can create unchecked exception by inhereting
RuntimeException class. Spec does not say that we can't do
it but it is advisable to go for custom checked exception
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
Name four container classes.
What is the difference between path and classpath variables?
what is the difference between process and thread? : Java thread
How do you get the length of a string in java?
Break statement can be used as labels in java?
What is difference between wait and notify in java?
State one difference between a template class and class template.
Can constructor return value?
How many types of flags are there?
what is predefined function in java?
can any body body expalin best definitions & best real time exaples for opps concepts.
How many bytes is a unicode character?
What is the exception hierarchy in java?
What is private protected in java?
What is stringreader?