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
Explain covariance and contra-variance in .net framework 4.0. Give an example for each.
What is .net framework used for?
What is storage model? : Entity framework
What is entitytypes? : Entity framework
What is a model in android?
What is the .net framework?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
What is Separation of Concerns in ASP.NET ASP.Net MVC?
What is the significance of nonactionattribute?
Where are the routing rules defined in an asp.net mvc application?
Explain ASP.NET MVC Identity and Security?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
How we can register the Area in ASP.Net MVC?
Can I add mvc testcases in visual studio express?
Explain the types of Scaffoldings.