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
Is a boolean variable?
Can an interface be final?
Will the jvm load the package twice at runtime?
what are different ways in which a thread can enter the waiting state? : Java thread
What are the types of literals?
When do I need to use reflection feature in java?
What do you mean by object?
What is the importance of hashcode() and equals() methods?
How do you override a method?
What is the difference between serial and throughput garbage collector?
Difference between predicate, supplier and consumer ?
Difference between static and dynamic class loading.
What is a native method in java programming?
Can You Have Virtual Functions In Java?
What are the different types of methodologies?