Can we throw exception from catch block ?
Answer Posted / nilesh
Yes. A throw statement can be used in the catch block to re-
throw the exception, which has been caught by the catch
statement. For example:
catch (InvalidCastException e)
{
throw (e); // Rethrowing exception e
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is Cookies Less Session?
Explain Features in ASP.NET
What is the difference between GridView and Repeater controls in ASP.NET?
Is there any property names “isnavigating”?
Explain the steps needed to be performed in order to create an animation in xaml?
Explain the difference between asp.net mvc and asp.net webforms
What are the Types of authentications in IIS
How you can access the values from the Repeater control in ASP.NET?
Can we use html in asp.net?
Who is using asp.net?
What are the advantages of using Master Pages?
What I need to create and run an asp.net application?
Why is the standalone environment only useful during the development process?
What are the benefits of Razor View?
What is the use of session in web application?