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 are the types of jit?

1003


Can any object be stored in a viewstate in .net?

1033


Explain the main components in .net?

1007


What is gac in .net?

1009


What are .net applications?

963


If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?

899


What is static constructor, when it will be fired? And what is its use?

1033


What is the native image generator?

1096


What is meant by localization?

1107


Explain cas (code access security)?

988


What is an assembly? What are the different types of assemblies?

1113


What are code contracts?

984


Tell me about secure socket layer? How to make use of the technology?

936


What is different between webusercontrol and in webcustomcontrol?

933


Explain the different parts of an assembly?

992