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

How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

991


What is entity framework in asp net?

1128


Mention some action filters which are used regularly in ASP.Net MVC?

1012


What are the advantages of asp.net mvc?

1057


Explain Sections is ASP.Net MVC?

1159


Do you know about the new features in ASP.Net MVC 4 ?

1121


How route table is created in ASP.NET MVC?

1085


What is work of clr?

1011


What is a view engine?

1000


What is the difference between windows vista and .net framework 3.0 ?

1029


How do I use partial view?

993


explain what does .edmx file contains?

1103


Explain Bundle.Config in ASP.Net MVC4?

1033


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

1105


What is model first? : Entity framework

1091