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

Answer Posted / visweswara rao

throw:- System generated exceptions are automatically
thrown by the Java run-time system.To manualy throw the
exception,we use the keyword throw

throws:- Any exception that is thrown out of a method must
be specified as such by a throws clause

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls

1969


What are the basic concepts of OOPS in java?

1085


Which non-unicode letter characters may be used as the first character of an identifier?

1048


How are this() and super() used with constructors in java programming?

1114


Is array an object in java?

1015


What is empty string literal in java?

1106


Can a class be a super class and a sub-class at the same time? Give example.

1613


What are peerless components in java programming?

1060


What is string literal in java?

1094


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

1091


Write a method that will remove given character from the string?

1080


Is passing by reference faster?

1045


What is logical variable?

1038


What is the difference between an argument and a parameter?

1036


When to use runnable interface vs thread class in java?

1030