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
What are Model Binders in ASP.Net MVC?
How route table is created in ASP.NET MVC?
How large is the .net framework 3.0?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What is a view engine?
explain how you can load related entities in ef (entity framework)?
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
How we can add the CSS in ASP.Net MVC?
Explain the 'page lifecycle' of an ASP.NET MVC?
When will the .net framework 3.0 be released?
Mention what is the difference between “ActionResult” and “ViewResult” ?
how do you truncate a table using entity data model?
Is .net core replacing .net framework?
what is use of entitydatasource control?
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?