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 ViewStart Page in ASP.Net MVC?

1031


What are authentication filters in web api?

1046


What is entitytypes? : Entity framework

1027


Describe the roles of clr in .net framework.?

1112


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

1103


What is .net core framework?

993


What is asp net framework?

965


Explain the advantage of packaging over xcopy in .net?

970


What you mean by routing in mvc?

1093


Is .net framework dead?

1014


Which version of .net framework is installed?

953


Explain linq to entities? : Entity framework

1022


What are the components of the .net framework.

1042


What is the meaning of unobtrusive javascript? Explain us by any practical example.

990


What are non action methods in mvc?

1013