can multiple catch blocks be executed for a single try statement?



can multiple catch blocks be executed for a single try statement?..

Answer / Sewika Kumari

No, only one catch block is executed when an exception occurs in a try block. If the first catch block can't handle the exception, the next catch block will be evaluated until a suitable match is found or an unhandled exception occurs.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Explain the constructor in c#.

1 Answers  


What is strongly typed in c#?

1 Answers  


What is the name of c# compiler?

1 Answers  


Can you pass parameters to destructors?

1 Answers  


What is sqlconnection in c#?

1 Answers  


What is the difference between overriding and overloading in systemverilog?

1 Answers  


I am using a data table and a datagridview. I am creating two columns in data grid view : 1)DataGridViewComboBoxColumn 2)DataGridViewTextBoxColumn. The items of datagridviewcombo are the list of all items in data table column 1. I want that the data type of the DataGridViewTextBoxColumn should be the same as the data type of the item selected from the datagridviewcombo at runtime. How can I do that.Also I want that each cell in column of datatable should be of variable data type. Pls help. thnx.

1 Answers   Storm,


To allow an element to be accessed using a unique key which .NET collection class is used ?

1 Answers   Siebel,


How does c# generics and c++ templates compare?

1 Answers  


c# code for how to merge two sorted arrays Input : A = 2,5,8,4 B = 3,9,10,5 Output : 2,3,4,5,5,8,9,10

3 Answers  


Is struct object oriented?

1 Answers  


What is c sharp language?

1 Answers  


Categories