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
Is it possible to share a view across multiple controllers?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
What are ajax helpers in asp.net mvc?
Is .net framework 4.8 the last version?
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
Do you know about the new features in ASP.Net MVC 4 ?
What is the difference between partial and renderpartial?
What are the new features 3.5 framework against with the tool?
What is the "helperpage.isajax" property?
Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?
What is meant by viewdata?
What is the .net framework and how does it work?
What is entity framework used for?
What you mean by routing in asp.net mvc?