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

it will give compile time error as, the sequence of
exception class has to be Most Specific => General.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is edm in entity framework?

939


Do you know about the new features in ASP.Net MVC 4 ?

1024


what do you mean by navigation property?

1001


What is objectset? : Entity framework

965


What is representational state transfer (rest) mean?

940


How we can multiple submit buttons in ASP.Net MVC

1097


Can you please explain the request flow in ASP.NET MVC framework?

1079


Is http stateful or stateless?

977


How to Redirect Tracing to a File

999


What is the importance of NonActionAttribute?

1025


how to disable the lazy loading framework?

1021


Explain the role of assembly in the .net framework.

968


What is the "helperpage.isajax" property?

1117


What are html helpers in asp.net mvc?

986


Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?

972