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 / syed
The generic exception (Catch(Exception e)) should be
written after all the specific exceptions are written.
if any specific exception is written after the general
exception that will be of no use, as for all the exceptions
that were encountered in the try block will be catched by
the generic exception.
hope u got it.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to implement getcommon method in class a? Are you seeing any problem in the implementation?
Can you explain what do you understand about web service?
What method do you use to explicitly kill a users session? How?
Define marshling?
which method do you use to redirect the user to another page without performing a round trip to the client? How?
Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?
i m fresher,hav SQL knowledge but in my ofc. i hav to work on dotnet. so plz tell me how to learn it,? from where to stat? i hav C prog. knowledge, ASP.net
i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?
Explain attributes in dot net?
what is machine key error in .NET how can we solve it?
Do you know what are three common acronyms used in .net, and what do they stand for?
what is the default security setting in .net?
What are the two main parts of the .net framework?
Tell us the difference between managed and unmanaged code?
Explain what is heap and what is stack?