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 the difference between throw and throws?

Answer Posted / surender kannuri

throws clause is used to whenever programmer doesn't want to
handle exception.throws it out of method.

throw is used whenever programmer wants to handle exception
explicitly by using catch blocks.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two categories of data types in the java programming language?

994


Differentiate between vector and array list.

1067


What is the difference between break and continue statements?

1040


Write code to implement bubble sort in java?

998


Discuss different types of errors that generally occur while programming.

1039


How do you achieve polymorphism in java?

998


Is main is a keyword?

1000


Is an empty arraylist null?

1098


What is a java list?

1120


Where are variables stored?

975


Can a class have multiple subclasses?

1108


Can we synchronize static methods in java?

1105


How do you sort data in java?

954


What are the important features of Java 9 release?

1001


What is prefix of a string?

1041