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 / meena
In try block the SQL query will be executed so the exception
will match the SQLException catch because all type of SQL
exception will be match in this SQLException
if we wrote normal query in try block then it will match
Exception catch
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?
What is entity framework in asp net?
Mention some action filters which are used regularly in ASP.Net MVC?
What are the advantages of asp.net mvc?
Explain Sections is ASP.Net MVC?
Do you know about the new features in ASP.Net MVC 4 ?
How route table is created in ASP.NET MVC?
What is work of clr?
What is a view engine?
What is the difference between windows vista and .net framework 3.0 ?
How do I use partial view?
explain what does .edmx file contains?
Explain Bundle.Config in ASP.Net MVC4?
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
What is model first? : Entity framework