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
How can exception be handled with out the use of try catch?
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
What are the difference between overriding and overloading?
What is _dopostback in asp net?
Contrast oop and soa. What are tenets of each16. How does the xmlserializer work? What acl permissions does a process using it require?
What are the Types of chaching. How to implement caching
What are the options in ASP.NET to maintain state?
What is the difference between session.abandon() vs clear()?
Can the dictionary object be created in client?s scope ?
Is asp.net and .net same?
Define reflection in .net?
How to bind all the binding controls in a page at once in ASP.NET?
What is autopost?
when a request is made in Life cycle of ASP.NET page .
What is difference between URL and URI?