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


Please Help Members By Posting Answers For Below Questions

Name a few different return types of a controller action method?

1055


What is viewdata?

986


How does servicing work for the .net framework 3.0?

892


Explain the difference between viewbag and viewdata in mvc?

937


What is difference between viewbag and viewdata and tempdata?

973


How to update one of my table in database at 4pm every day how it is possible?

988


Can you use Razor code in Javascript in ASP.Net MVC?

1142


mention what are the various methods provided by the dataset object to generate xml?

961


What is entity framework in asp net?

1040


Explain .Net Framework? Why we use it?

1054


What is the importance of NonActionAttribute?

1032


What is the full form of sp?

936


What is domain class model?

972


How we can add the css in mvc?

975


What are the levels at which filters can be applied in an asp.net mvc application?

1072