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 / sabir
when the exception is thrown it will search for mostly
likely to least likely exception so it will catch in second
catch
| Is This Answer Correct ? | 11 Yes | 11 No |
Post New Answer View All Answers
What is the use of razor view engine?
Can I set the unlimited length for "maxjsonlength" property in config?
what is scalar property?
Mention two instances where routing is not implemented or required?
Explain what is asp.net mvc?
What are actions in asp.net mvc?
How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?
How to make sure Client Validation is enabled in ASP.Net MVC
What is storage model? : Entity framework
What are authentication filters in web api?
Explain the advantages of dependency injection (di) in asp.net mvc?
What are sections?
Explain the difference between Viewbag and Viewdata in ASP.NET MVC?
Is dapper better than entity framework?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?