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
What is object cloning in Java?
How can you write a loop indefinitely in java programming?
Is passing by reference faster?
What is array sorting in java?
What is comparator in java?
What is difference between core java and java ee?
Difference between object and reference?
How do you override a method?
What programs use java?
What is the main functionality of the remote reference layer?
What is variable length arguments in java?
Explain the overview of UDP messaging.
What is character in data type?
what is the major difference between linkedlist and arraylist in java?
Can a class be a super class and a sub-class at the same time? Give example.