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
Explain the concept of View Model in MVC?
What are the various ways to send content from one page to another?
What are sessions and cookies?
Explain culture and uiculture values.
Which library is used by the testers and developers to develop automated tests and create testing tools?
How many types of cookies are there in asp.net?
Explain about Multi-Language integration?
What are the different properties of server control that exists?
What is Razor View Engine
Are cookies client side or server side?
What are the different types of validation controls provided in ASP.NET?
Define secured sockets layer.
What is inproc mode in session?
How many types of validators are there in asp net?
Can you explain the basic use of dataview?