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


Please Help Members By Posting Answers For Below Questions

What is the difference between Grid and Gridbaglayout?

584


what is the constructor and how many types of constructors are used in java?

535


Which collection is thread safe in java?

509


What is an immutable class?

615


Can we able to pass objects as an arguments in java?

530






How do you calculate roots in java?

526


What are heap memory and stack memory and what are memory tables.

511


Is integer passed by reference in java?

566


can java object be locked down for exclusive use by a given thread? : Java thread

531


How many types of threads are there in java?

504


Can we force garbage collector to run ?

572


What is java developer skills?

516


What are assembly attributes?

546


What is double word?

533


What are the advantages of defining packages in java?

507