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 / parikshit
it will give compile time error as, the sequence of
exception class has to be Most Specific => General.
| Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is edm in entity framework?
Do you know about the new features in ASP.Net MVC 4 ?
what do you mean by navigation property?
What is objectset? : Entity framework
What is representational state transfer (rest) mean?
How we can multiple submit buttons in ASP.Net MVC
Can you please explain the request flow in ASP.NET MVC framework?
Is http stateful or stateless?
How to Redirect Tracing to a File
What is the importance of NonActionAttribute?
how to disable the lazy loading framework?
Explain the role of assembly in the .net framework.
What is the "helperpage.isajax" property?
What are html helpers in asp.net mvc?
Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?