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

The First Catch block will be executed, if the generic
exception should be defined it should be the last of
exception list

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is dapper better than entity framework?

978


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

1056


What is the difference between model and entity?

1039


What are the main features of asp.net mvc 4 used by asp.net web api?

1085


What is layout in mvc?

1023


In Server how to check whether model has error or not in ASP.Net MVC

1133


How can I tell what .net framework is installed?

979


In which assembly is the mvc framework defined?

1038


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

1080


What are the new enhancements done in default project template of asp.net mvc 4?

1045


What is the benefit of entity framework?

999


Which filter executes first in an asp.net mvc application?

980


What are Action Filters in ASP.NET MVC and its use?

1079


What is session state management?

1021


What is the use of the default route {resource}.axd/{*pathinfo} ?

1024