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

What is the use of razor view engine?

974


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

1033


what is scalar property?

1079


Mention two instances where routing is not implemented or required?

1225


Explain what is asp.net mvc?

1134


What are actions in asp.net mvc?

1105


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

930


How to make sure Client Validation is enabled in ASP.Net MVC

1094


What is storage model? : Entity framework

1007


What are authentication filters in web api?

1060


Explain the advantages of dependency injection (di) in asp.net mvc?

1055


What are sections?

1136


Explain the difference between Viewbag and Viewdata in ASP.NET MVC?

1026


Is dapper better than entity framework?

978


What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?

993