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 use of giving more than one CATCH BLOCK in one
TRY block? Directly we can give that catch(Exception e)?Why
we go for arrayoutofbound Exception,divided by zero etc..?
Explain

Answer Posted / kavitha

try with single catch block will catch what ever the
exception thrown by the code inside the try block but it
will not be clear..some time a code in a try block can throw
different type of exception.To catch the different type of
exception what our code throws we can use difference type
of catch for the single try block it will be more clear and
help full.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is poco c#?

959


What is double c#?

986


How do you declare an interface in c#?

965


What is the difference between list and array in c#?

1115


Define clr in .net?

1046


What is the main usage of keyword “virtual” ? How does it work for a method or property?

960


Is a c# interface the same as a c++ abstract class?

1021


Which types of inheritances does c# support?

943


What do you mean by a windows process in regards to memory allocation?

1004


Can a class or a struct have multiple constructors?

1023


What is protected internal modifier in C#?

1093


Do events have return type c#?

978


How do you remove white spaces from a string?

982


When a Static Constructor is called in a Class?

1083


How do you comment in c#?

1033