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
What are child actions in ASP.Net MVC?
mention what are the various methods provided by the dataset object to generate xml?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What is associationset? : Entity framework
Is it possible to share a view across multiple controllers?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
What are Code Blocks in Views?
Is razor a server side?
What is storage model? : Entity framework
What is page life cycle?
What is viewdata?
Is .net framework going away?
Can you use Razor code in Javascript in ASP.Net MVC?
Can I add mvc testcases in visual studio express?
Describe the .net framework architecture.