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

What is a boolean structure?

1089


How will you initialize an Applet?

1151


How does thread synchronization occurs inside a monitor?

1102


What is multi-catch block in java?

1082


What are the steps in the jdbc connection?

1025


How do I print a “?

997


Compare Mutex and Semaphore in java.

1005


What is entry set in java?

1144


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1153


What are the types of methods in java?

1117


How do you initialize an arraylist in java?

1043


What is the generic function?

987


Why is java multithreaded?

992


when to use ArrayList and when to use HashMap in webApplication.

4709


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

954