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 / raman
C# is not only an object oriented but real
scenariodevelopment.
Purpose of multiple catch block is to map the exact error
and handle it accordingly. Handling Exception e is the
worst type of development.
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is streamreader/streamwriter class?
What is a ienumerator?
Which namespaces are necessary to create a localized application?
What is immutable in C#?
What's new in c#?
What is hash c#?
What is lock statement in C#?
What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?
Can fields inside a class be virtual?
What is ControlBox Propertie
What is meant by generics in c#?
Why do you need boxing in c#?
What is difference between assembly and namespace?
What is int32?
What is the purpose of the integer parse method the decimal parse method?