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 / mathew m
it will give error
previous catch clause already catches all exceptions of
this or of a super type ('System.Exception')
b"z System.Exception is the MOTHER -"mathaji" of all
exception.So all will be caught intitally,after that no
exception remains...it will be ok if we put child exception
like "SQLQueryException" before Exception [mathaji:)]
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Does razor engine supports for tdd?
What are the main components of .net framework?
What is the use .glimpse in mvc?
What are ajax helpers in asp.net mvc?
Explain tempdata in mvc?
Describe the roles of clr in .net framework.?
What is the need of Action Filters in ASP.Net MVC
What are Action Methods in ASP.NET MVC?
Explain how you can send the result back in JSON format in MVC?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
What is the use of razor view engine?
Can I add asp.net mvc testcases in visual studio express?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
What is NonActionAttribute ?
What are the components of the .net framework.