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
Can you call a method on a null object?
How to sort an array in java without using sort method?
Is java an ide?
How hashset works internally in java?
How do I get a substring?
Name some classes present in java.util.regex package.
Is java platform independent?
Is java still necessary?
What exactly is a .class file?
Explain java coding standards for variables ?
What is are packages?
What are the main differences between notify and notifyAll in Java?
Can a method inside a interface be declared as final?
How do you make an arraylist empty in java?
What is the difference between length and length () in java?