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 the greatest advantage of using asp.net mvc over asp.net webforms?
What is .net architecture and framework?
What are Non Action methods in ASP.Net MVC?
In razor syntax, what is the escape sequence character for @ symbol?
What are ajax helpers in asp.net mvc?
Explain the types of Scaffoldings.
What are advantages of Dependency Injection (DI) in ASP.Net MVC?
What is the use of the default route?
What is attribute routing in mvc?
In which assembly is the mvc framework defined?
Is mvc 4 supporting windows azure sdk (software development kit) ?
what is code first approach?
Can you please explain the request flow in ASP.NET MVC framework?
Is .net core replacing .net framework?
How route table has been created in asp.net mvc?