Can we throw exception from catch block

Answers were Sorted based on User's Feedback



Can we throw exception from catch block..

Answer / chandan kumar

yes, we can throw exception from catch block

Is This Answer Correct ?    17 Yes 2 No

Can we throw exception from catch block..

Answer / chandan kumar

yes we can, i have tried it.it is working fine

Is This Answer Correct ?    5 Yes 0 No

Can we throw exception from catch block..

Answer / sudipta

Throw statement can be used in the catch block to rethrow
the exception,which has been caught by the catch statement.

Is This Answer Correct ?    4 Yes 0 No

Can we throw exception from catch block..

Answer / brijen.patel

Yes, we can throw exception from catch block.

Is This Answer Correct ?    4 Yes 0 No

Can we throw exception from catch block..

Answer / prosanta

yes,

follow this example-

static void Main(string[] args)
{
try
{
throw new Exception();
}
catch
{
try
{
Console.WriteLine("This is the 1st
exception");
throw new Exception();
}
catch
{
Console.WriteLine("This is the 2nd
exception");
Console.Read();
}
}

}




output:
This is the 1st exception
This is the 2nd exception

Is This Answer Correct ?    5 Yes 2 No

Can we throw exception from catch block..

Answer / roopali

no we cannot

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More C Sharp Interview Questions

How can I process command-line arguments?

0 Answers  


What is the use of console application in c#?

0 Answers  


What is orm in c#?

0 Answers  


How can I create image pieces/sub image?

0 Answers  


Define multicast delegate in c#?

0 Answers  






Distinguish between a class and struct?

0 Answers  


What is architecture of your poroject? how i c an say?

2 Answers   Eminosoft, HCL, Phoenix Technologies,


Wht executescaler method is used?

0 Answers  


What does assemblyinfo.cs consists ?

4 Answers   Microsoft,


What is c# entity framework?

0 Answers  


What is the and operator in c#?

0 Answers  


how to communicate inventory system and account system?

1 Answers  


Categories