Try-catch flow

Forums C#Try-catch flow
Staff asked 5 years ago
Try{}
Catch(Exception ex){}
Catch(NumberFormatException ex){}
Catch(NullRefernceException ex){}

Suppose we have this, in which case the other two catch blocks will be executed?

Answers (1)

Add Answer
Satish Pawar Marked As Accepted
Staff answered 3 years ago

Only first catch will execute in any case

Subscribe

Select Categories