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 / parikshit
it will give compile time error as, the sequence of
exception class has to be Most Specific => General.
Is This Answer Correct ? | 12 Yes | 3 No |
Post New Answer View All Answers
What is rxjava used for?
I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?
What is stateless model?
If I have multiple filters implemented, what is the order in which these filters get executed?
What is the role of the jit compiler in .net framework?
How the ‘page lifecycle’ of ASP.Net MVC does works?
What is the difference between tempdata and viewbag?
what is entityclient?
What is asp net framework?
explain how you can load related entities in ef (entity framework)?
What is ado.net data provider? : Entity framework
What is web api‘s in asp.net mvc 4 ?
Which .net framework is installed?
What is entity framework used for?
Explain the role of assembly in the .net framework.