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 / sabir
when the exception is thrown it will search for mostly
likely to least likely exception so it will catch in second
catch
| Is This Answer Correct ? | 11 Yes | 11 No |
Post New Answer View All Answers
Name a few different return types of a controller action method?
What is viewdata?
How does servicing work for the .net framework 3.0?
Explain the difference between viewbag and viewdata in mvc?
What is difference between viewbag and viewdata and tempdata?
How to update one of my table in database at 4pm every day how it is possible?
Can you use Razor code in Javascript in ASP.Net MVC?
mention what are the various methods provided by the dataset object to generate xml?
What is entity framework in asp net?
Explain .Net Framework? Why we use it?
What is the importance of NonActionAttribute?
What is the full form of sp?
What is domain class model?
How we can add the css in mvc?
What are the levels at which filters can be applied in an asp.net mvc application?