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

mainly throw is used for user defined exceptions and throws
is used for compiler defined excetions.
Ex: if u get a NullPointer exception then we throws this
excetion to the compiler defined excetion class.

if u get malformed or ur own excetion in this time we to
throw this to our own defined excetion

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are registers volatile?

942


Can static methods be inherited?

1055


Can inner class final?

1103


What is the final keyword?

990


Explain the difference between serializable and externalizable in java?

1074


Differentiate between nested and inner class in java.

1010


What is classname class in java?

1072


What is this keyword used for?

1120


What are new features introduced with java 8 ?

1000


What are the properties of thread?

930


What is a jit compiler?

1143


What are the major drawbacks of external iteration?

1067


Explain constructors and types of constructors in java.

1120


What is difference between string and stringbuffer?

1113


How many bits is a string in java?

1034