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 a source file contain more than one class declaration?
What is the purpose of main function in java?
How many bytes is string in java?
If a method is declared as protected, where may the method be accessed?
What does || mean in code?
What is string [] java?
What is the difference between overriding & overloading?
What are singleton services?
How do you clear an arraylist in java?
Which method must be implemented by all threads?
what is the purpose of "virtual"?
List the different types of classloaders in java.
What are the legal parameters?
Write a program to print 15 random numbers using foreach of java 8?
What does percent mean in java?