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 object in c#?
What is null in database?
What is wpf c#?
Explain how do you convert a value-type to a reference-type?
What is the purpose of ienumerable in c#?
When is a class declared as a class abstract?
What is global namespace in c#?
When should you use generics?
What is the difference between “constant” and “readonly” variables in c#?
Is var a data type?
What are partial types in c#?
In which situation(s), the use of "Delegate" is a good idea?
What are the collections in c#?
How are Windows programs different from normal C-programs?
Is c# front end or back end?