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

If we inherit a class do the private variables also get inherited ?

6 Answers   TCS,


Where do we set the min and max pool size for connection pooling?

0 Answers  


Is c sharp open source?

0 Answers  


What is private virtual in C#?

0 Answers   CDC,


How long does a loop recorder procedure take?

0 Answers  






What is InterFace???

12 Answers  


Please write a program to display “welcome to bestinterviewquestion.com” in c#?

0 Answers  


Can a structure inherit a class.

3 Answers   Infosys, Synechron,


Explain the functionalities of satellite assembly?

0 Answers   Siebel,


Which of the following API is used to hide a window?

0 Answers   3i Infotech,


Which string method is used for concatenation of two strings in c#?

0 Answers  


What is integer c#?

0 Answers  


Categories