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
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
What is a view engine?
Mention what is the difference between “ActionResult” and “ViewResult” ?
what is scalar property?
What is attribute routing in mvc?
i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources
What is entity framework in asp net?
why DotNetFramework is included in building a software
What are ajax helpers in asp.net mvc?
What is tempdata?
What are Action Methods in ASP.NET MVC?
What is connected scenario? : Entity framework
What are action filters?
How the ‘page lifecycle’ of ASP.Net MVC does works?
Where is the new functionality in the .net framework 3.0 (such as wcf, wf, wpf, and cardspace) installed to? Is that different from where the .net framework 2.0 is installed to?