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
Why should we go for entity framework?
Explain ASP.NET MVC Identity and Security?
Is razor a server side?
What is the .net framework and how does it work?
Is it possible to unit test an mvc application without running the controllers in an asp.net process?
what is lazy loading in entity framework?
What is latest version of .net framework?
What is the role of the jit compiler in .net framework?
In which assembly is the mvc framework defined?
Is entity framework slow?
If I have multiple filters implemented, what is the order in which these filters get executed?
What is the difference between adding routes, to a webforms application and to an mvc application?
i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources
Why we need a separate mobile project template, while we can render our web application in mobile ?
What is meant by viewdata?