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 |
Is c# substring zero based?
When Doveloped C#
What is abstract class ?
What is view model in c#?
How to make a class non-inheritable other than sealed?
Write a short note on interface?
Can you declare the override method static while the original method is non-static?
What is a dbml?
What is inheritance c#?
What is the difference between == and object.equals?
How do partial classes work in c#?
Is multiple inheritance possible in c#?