Requirement is:
try
{
\\SQL Query
}
catch(Exception i)
{
print a
}
catch(SQLQueryException e)
{
\\SQL Query
}
Qu)I Got Exception in "try" block. Which "catch" statement
(i.e. 1st catch or 2nd catch ) catches the exception and
Why???
Answer Posted / balakrishnan
The First Catch block will be executed, if the generic
exception should be defined it should be the last of
exception list
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Explain the tools used for unit testing in ASP.Net MVC
What are Non Action methods in ASP.Net MVC?
how do you truncate a table using entity data model?
what do you mean by navigation property?
How does work clr?
Explain how you can implement Ajax in MVC?
What is net framework 3.0 ?
What is entitytype? : Entity framework
How we can handle the exception at controller level in ASP.Net MVC?
What are the main features of asp.net mvc 4 used by asp.net web api?
Explain the methods used to render the views in mvc?
What are Scaffold templates in ASP.Net MVC?
What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?
What are the 2 ways of adding constraints to a route?
What are ajax helpers in asp.net mvc?