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 dapper better than entity framework?
Explain the advantages of dependency injection (di) in asp.net mvc?
What is the difference between model and entity?
What are the main features of asp.net mvc 4 used by asp.net web api?
What is layout in mvc?
In Server how to check whether model has error or not in ASP.Net MVC
How can I tell what .net framework is installed?
In which assembly is the mvc framework defined?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?
What are the new enhancements done in default project template of asp.net mvc 4?
What is the benefit of entity framework?
Which filter executes first in an asp.net mvc application?
What are Action Filters in ASP.NET MVC and its use?
What is session state management?
What is the use of the default route {resource}.axd/{*pathinfo} ?