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 / meena
In try block the SQL query will be executed so the exception
will match the SQLException catch because all type of SQL
exception will be match in this SQLException
if we wrote normal query in try block then it will match
Exception catch
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
Explain the advantage of packaging over xcopy in .net?
Briefly describe the roles of clr in .net framework?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
What is Dependency Injection in ASP.Net MVC
Is it possible to create a custom filter?
What is filters in web api?
Describe the roles of clr in .net framework.?
Explain peek method in tempdata in asp.net mvc?
why DotNetFramework is included in building a software
Explain unit test done by tester on development team?
What is ado.net data provider? : Entity framework
What is a model in programming?
What is route config?
how can you tell ef to have a different table or column name than that defined for the class?
what do you mean by navigation property?