What is the difference between throw and throw ex?



What is the difference between throw and throw ex?..

Answer / Mushahid

In C#, 'throw' is used to throw an exception, while 'throw ex' throws an existing exception variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Advantages of c# over vb.net?

3 Answers   HCL, Syntel,


What is the difference between constant and readonly in c#?

1 Answers  


Explain about c# language.

1 Answers  


Is Multiple-inheritance supported by c#?

1 Answers   Siebel,


Where static variables are stored?

1 Answers  


Is python easier than c#?

1 Answers  


List some of the common data providers for ado.net framework?

1 Answers  


How can we convert XML Data to DataBase Table in C#.Net?

2 Answers   Wipro,


Explain the different ways a method can be overloaded?

1 Answers  


how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used

1 Answers   HCL, NIC,


What is different between Implicit conversion and Explicit conversion in C#?

1 Answers  


What does assemblyinfo.cs consists ?

4 Answers   Microsoft,


Categories