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

What is the use of action filters in an mvc application?

1058


Explain how you can implement Ajax in MVC?

936


Possible ways to prevent xss attacks on mvc application?

945


How can I return string result from action in asp.net mvc?

1000


Can I set the unlimited length for "maxjsonlength" property in config?

957


What are Model Binders in ASP.Net MVC?

1174


Are there any parts of the .net framework 3.0 that only work on windows vista?

1007


How to use multiple submit buttons in asp.net mvc?

1089


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

1004


How we can add the css in mvc?

960


What is renderbody?

971


what is use of entitydatasource control?

1024


How does servicing work for the .net framework 3.0?

872


Which version of the common language runtime (clr) does the .net framework 3.0 use?

1033


What is the use of view model in asp.net mvc?

1069