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

In try block the SQL query will be executed so the exception
will match the SQLException catch because all type of SQL
exception will be match in this SQLException

if we wrote normal query in try block then it will match
Exception catch

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why should we go for entity framework?

950


Explain ASP.NET MVC Identity and Security?

938


Is razor a server side?

931


What is the .net framework and how does it work?

924


Is it possible to unit test an mvc application without running the controllers in an asp.net process?

1075


what is lazy loading in entity framework?

1036


What is latest version of .net framework?

1072


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

1061


In which assembly is the mvc framework defined?

985


Is entity framework slow?

964


If I have multiple filters implemented, what is the order in which these filters get executed?

891


What is the difference between adding routes, to a webforms application and to an mvc application?

971


i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources

1961


Why we need a separate mobile project template, while we can render our web application in mobile ?

1099


What is meant by viewdata?

935