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 many catch blocks can be there for a single try block?

Answer Posted / d.s naidu

Single try block can handle multiple catch blocks.Let
assume if you have 4 catch blocks for a single try block.
while excuting/debugging the code, if the exception raises
that will go the appropriate catch block and resolve the
problem by the programmer. the remaining 3 catch blocks
will raise , if those really having the exception as per
the code logic

Is This Answer Correct ?    20 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does exclamation mark mean c#?

952


What is using keyword in C#?

979


How string definitions will prevent escaping on backslashes in C#?

935


What is difference between value and reference types in C#.NET

1027


What is the benefit of using interface in c#?

937


Define multicast c# delegate?

912


How does bitwise work?

852


Why should I use interface in c#?

931


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

923


What is difference between const and static in c#?

926


Write down the c# syntax to catch an exception

888


What is delegates in c# and uses of delegates?

791


When Should You Call The Garbage Collector In .net?

984


What are Regex / regular expressions ?

1018


How do you remove white spaces from a string?

885