Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the need of "creating and throwing an
UserdefinedException" when the "Exception" class is already
available?

Answer Posted / seshadri pera

UserDefindException are thrown and handled based on the
user requirements to make sure the particular exception
conditions intead of throwing the general exception for all
the exceptions.

We should handle the specific exception first by using
catching it instead of handling generic exceptions of type
Exception.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the drawbacks for singleton class?

943


How to solve the problem of generating the unique hash keys with hash function?

1855


Difference between process and thread?

988


What is binary search in java?

946


Are strings immutable in java?

919


What method is used to specify a container's layout in java programming?

1046


Can we sort list in java?

937


How does split work in java?

985


What is the use of http-tunneling in rmi?

1001


Why inputstreamreader is used in java?

958


How does the java compiler work?

912


Explain about main() method in java ?

998


What are the restriction imposed on a static method or a static block of code?

996


Explain about automatic type conversion in java?

1004


What will be the initial value of an object reference which is defined as an instance variable?

1076