VB .Net Question:
Download Questions PDF

Whats the C# equivalent of C++ catch (...), which was a catch-all statement for any possible exception?

Answer:

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 {}.

Download VB .Net Interview Questions And Answers PDF

Previous QuestionNext Question
How can you sort the elements of the array in descending order?Whats the implicit name of the parameter that gets passed into the class set method?