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
What is the use of action filters in an mvc application?
Explain how you can implement Ajax in MVC?
Possible ways to prevent xss attacks on mvc application?
How can I return string result from action in asp.net mvc?
Can I set the unlimited length for "maxjsonlength" property in config?
What are Model Binders in ASP.Net MVC?
Are there any parts of the .net framework 3.0 that only work on windows vista?
How to use multiple submit buttons in asp.net mvc?
How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?
How we can add the css in mvc?
What is renderbody?
what is use of entitydatasource control?
How does servicing work for the .net framework 3.0?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
What is the use of view model in asp.net mvc?