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
Which is faster list or dictionary in c#?
Which sorting algorithm is best?
How to generate strong name key file or which command is used to generated strong name key file?
Which compiler switch creates an xml file from xml comments in the files in an assembly?
Which of these string definitions will prevent escaping on backslashes in c#?
Is javascript harder than c#?
What is private protected in c#?
What is sqlcommandbuilder c#?
What are the types of serialization?
What is virtual in c#?
What is cshtml extension?
What is a base class in C#?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
What is the property of a class in c#?
What is an assembly loader?