Can multiple catch blocks be executed?

Answer Posted / senthil kumar

No.We may have the multiple catch block.Every catch block
has the different exception.when code found any error
suitable exception will be fired.but only one catch block
executed.

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why dependency injection is used in c#?

484


What is enumerable in c#?

470


What is msil, and why should developers need an appreciation of it if at all?

563


If I want to override a method one of class A and in class b then how do you declare?

739


What is difference between class and interface in c#?

448






What is difference between managed and unmanaged code?

489


Contrast System.String and System.Text.StringBuilder classes?

520


What is the difference between decimal and integer?

514


What is delegate in c#?

535


What is a scope in c#?

466


What is the major difference between a custom control and user control?

549


Can a class have more than 1 destructor?

507


Is dll a library?

479


How do I automate my desktop application?

491


How to add controls dynamically to the form using c#.net.

467