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
mention in what all scenarios entity framework can be applicable?
Explain how you can implement Ajax in MVC?
How we can call a javascript function on the change of a dropdown list in mvc?
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
What are the 2 ways of adding constraints to a route?
Is it possible to cancel filter execution?
Explain RenderBody and RenderPage in ASP.Net MVC?
What are advantages of Dependency Injection (DI) in ASP.Net MVC?
What is the version number for the next version of the .net framework, codenamed �orcas�?
explain lazy loading, eager loading, and explicit loading?
What are differences between entity framework and l2s? : Entity framework
The order of the filters that get executed, if the multiple filters are implemented?
What is the .net framework and how does it work?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?