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 / sathiya moorthy v

throw --> manually throw exception.
Ex: throw ThrowableInstance;
throws -->Any exception that is thrown out of a method must
be specified as such by a throws clause
Ex: <access specifier> <return type> <methodName> throws
Exception{
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is a constant variable important?

993


How do you compare values in java?

1091


What is ph and buffers?

1045


Can we convert list to set in java?

1047


Explain importance of throws keyword in java?

1034


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1130


What is io stream in java?

1127


What is the latest version of java?

1204


Does java support Operator Overloading?

1085


Explain different types of wrapper classes in java?

1070


What is the exact difference in between Unicast and Multicast object?

2189


Can a constructor be made final?

1155


What are the main uses of java?

1032


Why generics are used in java?

1093


Which is faster string or stringbuilder?

981