Can two catch blocks be executed?

Answer Posted / awadhesh

For a given set of try catch only one exception block will
get executed. Notice in finally what you are having is a
new set of try catch statements. They are unrelated to the
one above , so it is wrong to say here that two catch
blocks were executed.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps to create a webservice and consume it?

472


What do you mean by default constructor?

607


How to declare a property in a class?

548


How do I create a multilanguage, single-file assembly?

496


What is disco?

518






Which class comes after the SortedList class?

568


Is c# easier than javascript?

532


Can you change the value of a constant filed after its declaration?

522


How do I format in c#?

499


How many types of collections are there in c#?

482


What is a three-tier application.

556


What are collections in c#?

472


What is delegate in c#?

546


What are "class access modifiers" in C#?

536


What is sqldataadapter in c#?

491