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...

difference throws and throw in java

Answer Posted / chaitanya

throws clause is used when the programmer does not want to
handle the exception and throw it out of a method.throw
class is used when the programmer wants to throw an
exception explicitly and wants to handle it using catch
block.hence ,throws and throw are contradictory.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is strings in java?

1089


What is meant by method overriding?

1166


What is the final field modifier?

1032


What is outofmemoryerror in java?

1075


Explain the difference between treeset and treemap in java?

1046


How do you sort arrays in java?

988


How to use arraylist in java netbeans?

1093


Objects or references which of them gets garbage collected?

1010


Explain the use of shift operator in java. Can you give some examples?

1035


What is static in java?

1161


Define the term string pool?

1061


What are parameters in a method?

1156


How many ways can we create singleton class?

1022


What are the types of collections in java?

1117


What is the differences between heap and stack memory in java? Explain

1031