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

hi my question is about understanding a text the user entered to a site , so i want to analyse that text looking for some specific items such as "honda" "shoffere" etc.. so if this site could help or could tell me where to go with such question ,i wonder. thanks

1842


How many types of interface are there in c#?

735


What is desktop example?

729


What is virtual in c#?

692


what is a destructor?

812


What are the types of serialization?

774


What is web forms in c#?

729


the c# keyword .int. Maps to which .net type?

975


What do u mean by delegation?

752


What is sqldatareader c#?

702


What are different types of classes in c#?

695


Is it possible to have different access modifiers on the get/set methods of a property in c#?

814


Is struct object oriented?

697


can you declare an override method to be static if the original method is not static?

801


Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

783