Answer Posted / vijay saxena
No,
try
{
int p = 0;
int t = 6 / p;
}
catch (ArithmeticException ex)
{
Console.WriteLine("Arithmetic Exception");
}
catch (Exception ex)
{
Console.WriteLine("General Exception");
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between as and is operators in c#?
How can we set the class to be inherited, but prevent the method from being over-ridden?
What is the difference between Static, Const and read only?
What is keywords in c#?
What is the difference between public, static, and void?
Can we have only “try” block without “catch” block in c#?
Which control cannot be placed in mdi?
Which compiler switch creates an xml file from xml comments in the files in an assembly?
What is an example of delegation?
How do I declare inout arguments in c#?
What is callback function in c#?
What is xor operator in c#?
How can I get the ascii code for a character in c#?
What is .cshtml file?
What type is string in c#?