+ 1
Does "try block" work without "catch" in C#?
In a C# challenge, the question is "Can we have only try block without catch block in C#?" I answer "No" and I got "Wrong". In C#, "try block" really works without "catch"?
3 Answers
+ 8
Try can work without catch but you must have a finally block.
+ 6
Now I know thoroughly the answer of my question. Many thanks Avinesh for your answer. "Catch block" may contain many but only one of them will be executed.
+ 1
Thanks Sir! Avinesh!!!!