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 difference between throw and throws in exception?

Answer Posted / chandrakala

throw and throws are clauses.
throws: if we are not interested to catch the exception then we have to use throws. if any exception arises then internally JVM handles that exception.
throw: If we want to throw an exception explicitly we have to use throw.It comes under user defined exception.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define jre i.e. Java runtime environment?

962


What does %4d mean in java?

1424


Detail discussions on JVM, memory management and garbage collector.

926


What is synchronization and why is it important in java programming?

885


Why Java doesn’t support multiple inheritance?

990


Which keyword specify that a variable is effectively final ?

935


Explain about arraylist?

1031


Explain all java features with real time examples

1662


How to perform selection sort in java?

958


What is string data type?

910


What's the base class of all exception classes?

1015


Is there a case when finally will not execute?

947


What are the restrictions imposed by a Security Manager on Applets?.

2563


What are the java ide’s?

986


What about features of local inner class?

1015