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
What is the .net framework 3.0 (formerly winfx)?
What is meant by tempdata in mvc?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
explain lazy loading, eager loading, and explicit loading?
How route table has been created in asp.net mvc?
Is it possible to cancel filter execution?
Can a view be shared across multiple controllers? If yes, how we can do that?
Explain something about model, view and controllers in asp.net mvc?
Can we change web.config settings from iis?
What is entityset? : Entity framework
What is .net framework in simple terms?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
If I have multiple filters implemented, what is the order in which these filters get executed?
what is dot net? what is use dot net? what is benifit of dot net?what is vb dot net? what is ado dot net? what is c#?
What are the advantages of mvc over asp.net?