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
Answers were Sorted based on User's Feedback
Answer / 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 |
How objects are stored in memory?
What are handlers in c#?
What are the advantages of properties in c#?
What is assembly version series sequence?
What does assemblyinfo.cs consists ?
What is a copy constructor in c#?
How do you prevent a method from being overridden in c#?
What is difference between string and stringbuffer in c#?
How do you comment out code in c#?
What will a loop recorder show?
What is the difference between and xml documentation tag?
What?s the difference between an interface and abstract class?