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

Explain covariance and contra-variance in .net framework 4.0. Give an example for each.

956


What is .net framework used for?

961


What is storage model? : Entity framework

949


What is entitytypes? : Entity framework

984


What is a model in android?

901


What is the .net framework?

1003


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

943


What is Separation of Concerns in ASP.NET ASP.Net MVC?

1098


What is the significance of nonactionattribute?

964


Where are the routing rules defined in an asp.net mvc application?

983


Explain ASP.NET MVC Identity and Security?

930


Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?

2628


How we can register the Area in ASP.Net MVC?

1050


Can I add mvc testcases in visual studio express?

949


Explain the types of Scaffoldings.

1012