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 / balakrishnan
The First Catch block will be executed, if the generic
exception should be defined it should be the last of
exception list
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
The order of the filters that get executed, if the multiple filters are implemented?
What is a model in android?
mention what is csdl, ssdl and msl sections in an edmx file?
Why to use html.partial in mvc?
What is an asynchronous controller in asp.net mvc?
What is clr? How does work clr & wht is work of clr?
Explain unit test done by tester on development team?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
What is a model in programming?
What is edm (entity data model)? : Entity framework
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What are the 2 popular asp.net mvc view engines?
Is http stateful or stateless?
What are the main features of asp.net mvc 4 used by asp.net web api?
Explain covariance and contra-variance in .net framework 4.0. Give an example for each.