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

Answer Posted / dani

You can declare multiple exception thrown by method in
throws keyword by separating them in common
e.g. throws IOException, ArrayIndexBoundException etc,

while you can only throw one instance of exception using
throw keyword e.g. throw new IOException("not able to open
connection").

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which package is used for pattern matching with regular expressions?

1102


Why are generics used?

960


What is difference between string and new string?

1030


what is thread in Java ?

1153


What are abstract classes and anonymous classes?

1071


Is java free for commercial?

920


What do you mean by checked exceptions?

954


What is method overloading in JAVA? Why is it not present in C ?

1096


What are the java ide’s?

1023


Can a class have 2 constructors?

882


What are the main features of java?

964


How many decimal digits is 64 bit?

924


What is finally and finalize in java?

1085


Why arraylist is used in java?

1065


What is the static keyword?

1085