Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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


Please Help Members By Posting Answers For Below Questions

Can we change web.config settings from iis?

1136


what do you mean by table-per-type?

1137


What is razor code?

1134


what is .edmx file and what it contains?

1102


How does the .net framework 3.0 relate to the .net framework 2.0?

1090


How does servicing work for the .net framework 3.0?

983


How we can add the CSS in ASP.Net MVC?

1074


What are scaffold templates in mvc?

1064


Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

1071


Explain what is routing?

1030


What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

1130


what is msl?

1092


What are the components required to create a route in ASP.Net MVC?

1112


What are the options can be configured in AJAX helpers?

1048


What is the meaning of unobtrusive javascript?

1097