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
Can we change web.config settings from iis?
what do you mean by table-per-type?
What is razor code?
what is .edmx file and what it contains?
How does the .net framework 3.0 relate to the .net framework 2.0?
How does servicing work for the .net framework 3.0?
How we can add the CSS in ASP.Net MVC?
What are scaffold templates in mvc?
Explain covariance and contra-variance in .net framework 4.0. Give an example for each.
Explain what is routing?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
what is msl?
What are the components required to create a route in ASP.Net MVC?
What are the options can be configured in AJAX helpers?
What is the meaning of unobtrusive javascript?