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
In a container there are 5 components. I want to display all the component names, how will you do that?
Which is better singleton or static class?
How to stop a thread in java? Explain about sleep () method in a thread?
Can we write class inside a class in java?
What is boolean false?
How to access arraylist elements in java?
What is a blocking method in Java?
What is yield () in java?
can java object be locked down for exclusive use by a given thread? : Java thread
What does system.gc() and runtime.gc() methods do?
Describe how to implement singleton design pattern in struts.
What is size of int in java?
What is meant by anonymous class?
What is the symbol for average?
Explain listiterator and methods in listiterator?