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 conceptual model? : Entity framework

876


Which version of .net framework is installed?

895


What is mvc entity framework?

906


Does Tempdata hold the data for other request in ASP.Net MVC?

914


What is the role of the jit compiler in .net framework?

1055


What is renderbody?

973


What is representational state transfer (rest) mean?

936


How do I install .net framework?

903


what is entity sql?

1030


Mention the core components of .net framework?

922


what is entity data model?

996


What is Dependency Injection in ASP.Net MVC

1006


Is .net framework going away?

971


What is display mode in mvc?

950


What is the importance of NonActionAttribute?

1014