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

What is the main purpose of serialization in java?

0 Answers  


What is the right data type to represent a price in java?

0 Answers  


What are the two types of exceptions in java? Which are the differences between them?

0 Answers  


Does chrome use java?

0 Answers  


Explain what is Marker interface?

0 Answers   BirlaSoft,






Why we need to serialize the object

11 Answers   CTS, Geometric Software,


I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one

3 Answers   ABC, L&T,


What is thin driver and thick driver. why it is called so?

2 Answers   Logisoft,


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

0 Answers  


What is the main functionality of the remote reference layer?

0 Answers  


What is the most important feature of java? What is an interface?

0 Answers  


How to declare unique ArrayList ?

6 Answers   RMSI,


Categories