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

Where is stringbuffer stored?

771


What kind of variables a class can consist of?

865


Differentiate between vector and array list.

857


How can you set the applet size?

829


Does google use java?

764


Write a function for palindrome and factorial and explain?

873


Write a program to print fibonacci series

818


What exactly is methodology?

697


Can a constructor call another constructor?

775


How do you sort in descending order in java using collections sort?

716


what is synchronization and why is it important? : Java thread

862


How do you stop a thread in java?

837


Which are different kinds of source code?

897


What is immutable in java?

795


Explain some best practices you would apply while using collection in java?

823