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

throws specifies that a method could throw an exception
while throw is used to throw a particular type of exception

throw IOException;

public void clem()throws exception

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the definition of tree ?

1049


What is an exception? difference between Checked and Unchecked exception in Java

1014


What methodology can be utilized to link to a database?

968


What are the problems faced by java programmers who don't use layout managers?

980


How do you format in java?

1014


What does the “final” keyword mean in front of a variable? A method? A class?

1000


Differences between traditional programming language and object oriented programming language?

1129


Explain different ways of creating a thread. Which one would you prefer and why?

1043


What purpose do the keywords final, finally, and finalize fulfill?

1095


Why is stringbuffer thread safe?

1051


What is a java object and java application?

1057


What are the main uses of this keyword?

1066


Which is easier .net or java?

1089


Is java hashset ordered?

1120


In a container there are 5 components. I want to display all the component names, how will you do that?

2192