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...

Hi,
Requirement is:
try
{
\\SQL Query
}
catch(Exception i)
{
print a
}
catch(SQLQueryException e)
{
\\SQL Query
}
Got Exception in "try" block. Which "catch" throws
exception and Why???

Please provide the answer in detail..

Thanks for the help!!!

Answer Posted / kaushik

catch(SQLQueryException e)
{
\\SQL Query
}
would throw exception as a try can have more than one catch
block that the related exception can be handled individually

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between asp.net and asp?

1259


What is Flyout Design Pattern in .NET?

1175


What is a garbage collector?

1193


When we go for html server controls and when we go for web server controls?

1208


explain the states of a window service application?

1052


What is Ajax design pattern in .NET?

1126


Why do we use msmq?

1057


What is the difference between odbc and ado?

1294


How many design patterns can be created in .net?

1071


What are the new features of Framework 1.1 ?

16768


What is .net assembly?

1123


How do you trigger the paint event in system.drawing?

1050


What is cyclomatic complexity and why is it important?

2471


Explain garbage collection?

1029


Do I have any control over the garbage collection algorithm?

1095