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 return keyword in java?
What does the “static” keyword mean?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is a line break?
What is the byte range?
What is the synonym of procedure?
What is a class object?
What is the difference between logical data independence and physical data independence?
What is the importance of finally block in exception handling?
Explain importance of finally block in java?
How does a for loop work?
Is null a string?
What are the differences between throw and throws?
How do you achieve polymorphism in java?
Explain what is encapsulation?