In the previous example we have learnt how to handle exceptions at constructor level in C#.net. Now i am going to explain can we use try block with out catch block in CSharp.Net.
Explanation: We can use try block with out catch block by declaring finally block which is syntactically correct in C#.net. This is one of the best c#.net Interview Question
static void Main(string args)
int i = 0, j = 1, result;
Console.WriteLine("this is try block");
//Console.WriteLine("this is Catch block");
Console.WriteLine("this is finally block");
If you have any queries or suggestions, please feel free to ask in comments section.