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

What is callable java?

916


Difference between character constant and string constant in java ?

959


Explain java coding standards for variables ?

1108


What is a constructor overloading in java?

979


Define class?

972


Explain the advantages of packages in java?

858


What is the string function?

900


What is the tradeoff between using an unordered array versus an ordered array?

1160


Can we have try block without catch block?

984


Can a abstract class be declared final?

944


What is the purpose of the strictfp keyword?

1108


Can you declare the main method as final?

955


State the difference between creating string as new () and literal.

1014


Say any two properties in beans?

1017


Is oracle java 11 free?

897