Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is lambda programming?
when everything can be done by static block then why do we use main method?.
What is the ResourceBundle?
2 Answers Elementus Technologies,
Which is better stringbuffer or stringbuilder?
What is unmodifiable collection in java?
why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?
Explain access modifiers in java.
Explain the difference between an Interface and an Abstract class?
Can static methods be inherited?
What is the difference between yielding and sleeping in java programming?
How arrays are stored in memory in java?
What are null interfaces in JAVA ? and give me some examples?