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...

How does a try statement determine which catch clause
should be used to handle an exception?

Answer Posted / guest

when an exception is thrown with in the body of the try
statement then the catch clauses of the try statement are
examined in the order in which they appear.The first catch
clause that is capable of handling the exception is caught
and the remaining are ignored.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain polymorphism citing an example.

1018


do I need to use synchronized on setvalue(int)? : Java thread

975


What is runtime polymorphism or dynamic method dispatch?

987


What is singleton service?

927


What is difference between hashset and hashmap in java?

971


Explain the difference between comparator and comparable in java?

904


Why does java have two ways to create child threads?

920


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1044


What are the escape sequences in java?

995


what do you mean by stream pipelining in java 8? Explain

989


Does treeset allow null in java?

926


What is the purpose of using java.lang.class class?

979


What is the difference between processes and threads?

1016


Write a program to reverse array in place?

1035


How do you check if a number is a perfect square?

956