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
What is the difference between Grid and Gridbaglayout?
what is the constructor and how many types of constructors are used in java?
Which collection is thread safe in java?
What is an immutable class?
Can we able to pass objects as an arguments in java?
How do you calculate roots in java?
What are heap memory and stack memory and what are memory tables.
Is integer passed by reference in java?
can java object be locked down for exclusive use by a given thread? : Java thread
How many types of threads are there in java?
Can we force garbage collector to run ?
What is java developer skills?
What are assembly attributes?
What is double word?
What are the advantages of defining packages in java?