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

The keyword 'throws' should be used only with the methods while the keyword 'throw'is a clause...
Throws is actually a declaration of any methods and Throw is used to handle the exceptions...

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you check if a string contains only numeric digits?

1107


Does treeset allow null in java?

934


What are synchronized methods and synchronized statements in java programming?

996


Explain what do you mean by functional overloading in java?

991


How to Sort Strings which are given in List and display in ascending order without using java api.

4407


Explain when we should make an instance variable private.

1098


What does .equals do in java?

1071


How many threads does a core java have?

1045


Can you make a constructor final in Java?

1111


Can we force garbage collector to run ?

1041


What is meant by JVM? Is JVM platform independent or not?

1051


What is the difference between C++ and Java and your preferences?

1101


Why do I need to declare the type of a variable in java?

1055


Give the difference between the println method and sqrt method?

1076


Can we create a class inside a class in java?

1054