Interview Questions

What’s the C# syntax to catch any possible exception?

C# Interview Questions and Answers


(Continued from previous question...)

163. What’s the C# syntax to catch any possible exception?

A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.


(Continued on next question...)

Other Interview Questions