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

Explain the difference between transient and volatile in java?

0 Answers  


When do we use hashset over treeset?

0 Answers  


what is language and it responsibilities

1 Answers  


Why is boolean important?

0 Answers  


hr interview how many minutes asking question

0 Answers  






How do you check if two given string are anagrams?

0 Answers  


system.out.println(1 + 3);

8 Answers  


What does 3 dots mean in java?

0 Answers  


What is the top class of AWT event hierarchy?

5 Answers  


What does bitwise or mean?

0 Answers  


What is nested class?

0 Answers  


Should a main method be compulsorily declared in all java classes?

0 Answers  


Categories