Can multiple catch blocks be executed?

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


Please Help Members By Posting Answers For Below Questions

What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

524


What is jit (just in time)?

553


Why c# is type safe?

524


What do you mean by expression tree?

448


What is the purpose of namespace in c#?

446






Why do we use anonymous method in c#?

502


What is anonymous methods in c#?

555


What is array and types of array in c#?

482


What is the difference between interface and inheritance in c#?

471


What are the access modifiers in c#?

497


When was .net linq added?

517


Is datetime value type c#?

481


What are the two uses of a ‘using’ statement in c#?

476


What is an icollection in c#?

490


What are the 3 elements of delegation?

494