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

How ccw (com callable wrapper) and rcw (runtime callable wrappers) works?

754


What class does icon derive from? Isn't it just a bitmap with a wrapper name around it?

779


object is physical and class is logical..here class is not occupying any memory as our definition of class but i got a question then the class where it stores if it is not occupying any memory....

1829


Explain the features that are common to all .Net languages.

874


I was working for software company frm 2005 to 2009. I left job due to recession.I was jobless till dec 09 then i got job in bpo and i am not knowing what to do as my professional experience is with software.give me any suggestion.

1678


Can you edit data in repeater control? How?

719


Explain .NET architecture?

819


What's the problem with .net generics?

736


Explain the garbage collection process?

808


How to produce an assembly?

768


Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

2103


Please explain what are an inheritance, polymorphism, and encapsulation?

788


Compare client server application with n-tier application

688


Difference between abstract class and interface in .net?

764


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

715