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
Which are the important namespaces used in ASP.Net MVC?
What is entitytype? : Entity framework
What are actions in mvc?
What is renderbody?
Explain representational state transfer (rest) in detail?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
What is the .net framework and how does it work?
How route table has been created in ASP.NET ASP.Net MVC?
Are there any parts of the .net framework 3.0 that only work on windows vista?
Can you explain model, controller and view in mvc?
Explain the difference between Viewbag and Viewdata in ASP.NET MVC?
Possible ways to prevent xss attacks on mvc application?
what is use of entity container?
What is filters in web api?
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?