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 ViewStart Page in ASP.Net MVC?
What are authentication filters in web api?
What is entitytypes? : Entity framework
Describe the roles of clr in .net framework.?
What is the role of the jit compiler in .net framework?
What is .net core framework?
What is asp net framework?
Explain the advantage of packaging over xcopy in .net?
What you mean by routing in mvc?
Is .net framework dead?
Which version of .net framework is installed?
Explain linq to entities? : Entity framework
What are the components of the .net framework.
What is the meaning of unobtrusive javascript? Explain us by any practical example.
What are non action methods in mvc?