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 use of entity container?
What is layout in mvc?
Explain the .net framework.
What are scaffold templates in mvc?
What is the difference between tempdata and viewbag?
What is entity sql? : Entity framework
What is Differnce between html.action and ajax.action?
What type of filter does outputcacheattribute class represents?
How large is the .net framework 3.0?
Can I set the unlimited length for "maxjsonlength" property in config?
Difference between ASP.NET MVC and ASP.NET WebForms?
Is it possible to share a view across multiple controllers?
What is the difference between model view and controller?
how do you truncate a table using entity data model?
what is use of entitydatasource control?