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

How many arguments can a method have java?

0 Answers  


What is the purpose of the File class?

3 Answers  


Is it necessary for the port addresses to be unique? Explain with reason.

0 Answers   Aricent,


How do you check if a character in a string is a digit or letter?

0 Answers  


What is method overriding in java ?

0 Answers  


what is difference between equals and ==?

0 Answers  


Can we force the garbage collection to run?

0 Answers  


Can you access non static variable in static context?

0 Answers  


What is qms certification?

0 Answers  


What is local class in java?

0 Answers  


What is final access modifier in java?

0 Answers  


Why to give the file name same as the public class name in java?

3 Answers  


Categories