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 / balakrishnan

The First Catch block will be executed, if the generic
exception should be defined it should be the last of
exception list

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the tools used for unit testing in ASP.Net MVC

1115


What are Non Action methods in ASP.Net MVC?

1064


how do you truncate a table using entity data model?

1164


what do you mean by navigation property?

1046


How does work clr?

910


Explain how you can implement Ajax in MVC?

998


What is net framework 3.0 ?

1093


What is entitytype? : Entity framework

975


How we can handle the exception at controller level in ASP.Net MVC?

1093


What are the main features of asp.net mvc 4 used by asp.net web api?

1071


Explain the methods used to render the views in mvc?

1012


What are Scaffold templates in ASP.Net MVC?

1051


What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

1020


What are the 2 ways of adding constraints to a route?

1000


What are ajax helpers in asp.net mvc?

1066