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
What is the default value of date?
What the different phase/steps of acquiring a proxy object in webservice?
What are the types of assembly available
What is readline library?
What is the difference between “out” and “ref” parameters in c#?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
what is a constructor? What is a destructor?
What does break do in loop?
Why do we use constructors in c#?
in object oriented programming, how would you describe encapsulation?
Why do we need static in c#?
What is the namespace for the thread class?
What is as keyword in c#?
Which of these string definitions will prevent escaping on backslashes in c#?
What is a singleton unity?