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 domain class model?
What are html helpers in asp.net mvc?
What is difference between razor and web form engine?
What are the components of the .net 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?
What is storage model? : Entity framework
What is viewdata?
What is a view engine?
Explain Sections is ASP.Net MVC?
What is the difference between model and entity?
Mention the core components of .net framework?
How we can register the Area in ASP.Net MVC?
what is entity sql?
What is the full form of sp?
What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?