What is the use of giving more than one CATCH BLOCK in one
TRY block? Directly we can give that catch(Exception e)?Why
we go for arrayoutofbound Exception,divided by zero etc..?
Explain
Answer Posted / kavitha
try with single catch block will catch what ever the
exception thrown by the code inside the try block but it
will not be clear..some time a code in a try block can throw
different type of exception.To catch the different type of
exception what our code throws we can use difference type
of catch for the single try block it will be more clear and
help full.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Can we override interface methods in c#?
Can you explain template pattern?
Which function is the entry point for a DLL in MS Windows 3.1?
how to print invert pyramid in c#
Explain the functionalities of satellite assembly?
Which of the following API is used to hide a window?
What do you mean by sealed classes and static classes?
What is string concatenation?
What is c# in asp net?
Can the nested class access, the containing class. Give an example?
What are the new features in c# 2.0?
How is the syntax written to inherit from a class in C#?Give an example ?
Explain the difference between Response.Write () and Response.Output.Write ().
Which is faster iqueryable or ienumerable?
Which program construct must return a value?