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
Can I uninstall microsoft .net framework?
What is the advantage of using asp.net routing?
What are the versions of .net framework?
Which version of .net framework is installed?
Explain how you can send the result back in JSON format in MVC?
What is main objective of asp.net mvc 4 or what is new in mvc4 ?
Is .net framework dead?
what is lazy loading in entity framework?
What is stateless model?
What is the use of display modes?
What is entityset? : Entity framework
What is viewbag?
I want to fetch data from datareader. i have three tables in datareader. i want to bind my two table with datagrid, then i want to fetch a value from my third table. do u have any idea pls help me. we use dr.nextresult() for multiple tables.
How large is the .net framework 3.0?
What is difference between razor and web form engine?