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
Why to use Html.Partial in ASP.Net MVC?
What is .net framework used for?
Is mvc 4 supporting windows azure sdk (software development kit) ?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
Explain the advantage of packaging over xcopy in .net?
Is dapper faster than entity framework?
mention what is code first approach and model first approach in entity framework?
When will the .net framework 3.0 be released?
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 do you handle variable number of segments in a route definition?
Difference between ASP.NET MVC and ASP.NET WebForms?
Name a few different return types of a controller action method?
Explain how you can send the result back in JSON format in MVC?
Explain how to use multiple submit buttons in ASP.Net MVC?
Can I remove .net framework?