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 |
explain Garbage collector’s functionality on unmanaged code
What are access modifiers in c#?
What are the differences between a class and a struct?
What is Implementation inheritance and interface inheritance?
What is the default value of datetime in c#?
what is the lifespan of the items stored in viewstate ?
can we declare a variable by name "this" in a class? Please explain?
What is a type c#?
What is arraylist class in c#?
Is c sharp free?
What is the use of dll file in c#?
Do void methods have parameters?