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 tempdata in mvc?
What is entity graph? : Entity framework
What are the 2 ways of adding constraints to a route?
What you mean by routing in asp.net mvc?
What are the main components of .net framework?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
What is a razor file?
How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?
i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?
What is Layout in ASP.Net MVC?
Can I uninstall microsoft .net framework?
What is the meaning of unobtrusive javascript?
Explain the tools used for unit testing in ASP.Net MVC
what is msl?
How does .net framework works?