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 hashset is used in java?

1120


What is the purpose of the runtime class in java programming?

1117


What is the file extension for java?

1120


How do weakhashmap works?

1203


Can you give few examples of final classes defined in java api?

1052


How variables are declared?

1032


Why is multiple inheritance not supported in java?

1091


Give me an example of array and linked list? Where they can be used?

1059


How do you end a program?

1182


what is interface in java? Explain

1035


what is a thread pool in java and why is it used?

1056


Why vector is used in java?

1069


How can you set the applet size?

1105


Write a program to solve producer consumer problem in java?

1066


What does math floor () do?

1008