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

What is memory leak and how does java handle it?

985


What do you mean by pointer value and address?

1050


Why can we not override static method?

1105


What is meant by flickering?

1081


Are arrays passed by reference in java?

914


What are three types of loops in java?

1136


What is variable declaration and definition?

1002


What is use of static method?

1054


Justify your answer that you can't define a method inside another method in java, if you can then how?

1173


Can size_t be negative?

1175


What is a parent class in java?

1016


What is the method overriding?

1082


Is int a class in java?

985


What is the maximum size of hashmap in java?

1003


Can we make a constructor final?

1020