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 / sri

if you want you could specify your own exception that you
know is gonna happen otherwise it is recommended to handle
the exception through exception class in catch block.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is an objects lock and which objects have locks? : Java thread

945


What is package protected in java?

917


What is supplier in java?

954


Which java collection does not allow null?

1091


How do you clear an arraylist in java?

935


What is the use of arraylist in java?

1028


What is nested class?

947


Is simpledateformat safe to use in the multithreaded program?

946


Is sizeof a keyword in java programming?

1014


Define how destructors are defined in java?

964


What is hotjava?

950


Is 0 an even number?

927


Explain about complier design(phases)

1023


Tell me about different OOPS concepts.

955


Are arrays dynamic in java?

978