Is it possible to create Userdefined Unchecked Exception
also?If Yes, give an example?

Answers were Sorted based on User's Feedback



Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?..

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

Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?..

Answer / balaji

We can't create Uncecked Exceptions

Is This Answer Correct ?    5 Yes 14 No

Post New Answer

More Core Java Interview Questions

When finally clause is executed?

3 Answers  


List any five features of java?

0 Answers  


What is a function in java?

0 Answers  


What is local class in java?

0 Answers  


Default layout of Dialog object?

1 Answers  






If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface?

8 Answers   Infosys, Synechron,


What are functions in java?

0 Answers  


Explain about the main() method in java?

0 Answers  


What is a parameter in a function?

0 Answers  


What are the main features of java?

0 Answers  


what is the swingutilities.invokelater(runnable) method for? : Java thread

0 Answers  


what are the rules to use try catch finally?

1 Answers   Satyam, UJ,


Categories