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 server side in asp.net?
Define application state variable and session state variable?
What are the different types of sessions in asp.net? Name them?
Can the unique key be null?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
What is considered a service provider?
How is mvc different from asp.net? : Asp.Net MVC
How will you maintain versioning in asp.net 2.0?
How do we assign page-specific attributes?
What parameters can you pass in the url of the api?
How we can force all the validation controls to run?
What is the use of service provider?
How long does an http session last?
How do you declare static variable? What is its lifetime?
What are the new data controls in asp.net 2.0?