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 do you mean by append?

1072


What is string array?

1067


What’s the difference between the methods sleep() and wait()?

1012


What is :: operator in java?

974


How to create a custom exception?

995


What is math exp in java?

1049


What are invisible components?.

2147


What is use of static in java?

1175


What is %02d?

1085


Explain about fail safe iterators in java?

1025


Difference between ‘>>’ and ‘>>>’ operators in java?

1125


What is consumer interface?

1001


Can a java program have 2 main methods?

1050


Why do we need data serialization?

994


What is an object’s lock and which object’s have locks?

967