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 is a class component?

1220


explain what is transient variable in java?

1191


Explain about wait() method?

1075


Should database connections be singleton?

1013


What is a method type?

1036


What is the purpose of garbage collection in java?

1138


What is the difference between inner class and nested class?

1152


What is an abstract class and what is it’s purpose?

1012


What are the three parts of a lambda expression? What is the type of lambda expression?

1083


What is stack example?

1097


What is use of functional interface in java 8? Explain

1088


List primitive java types?

1091


What is the significance of continue jump statement? Explain with an example.

1350


What is a key in java?

1021


Explain about sets?

1085