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

Can multiple catch blocks be executed?

Answer Posted / kumarraju

Not Executed Multiple catch blocks, exception raised then
corresponding catch block only executed, after that finally
block executed. In case Exception is not raised then
finally block executed.

why you are writing multiple catch blocks than
one catch blocks?
Ans: you does not know what the exception raise, then you
are excepting some exceptions thats only you write multiple
catch blocks.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between dataset and datareader?

910


When would you use generics in your code c#?

864


How can we sort the elements of the array in descending order?

887


What is type cast in C#?

949


Which compiler switch creates an xml file from xml comments in the files in an assembly?

945


Why static constructor is parameterless in c#?

980


Wcf and what is difference between wcf and web services?

887


Can we customize the serialization process?

910


Is as operator in c#?

816


How to create events for a control? What is custom events? How to create it?

938


What are the advantages of interface in c#?

888


Write a short note on interface?

936


Whats an assembly? Describe the importance of assembly?

853


can you create a function in c# which can accept varying number of arguments

1021


What are Memory foot print of an exe?

943