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


Please Help Members By Posting Answers For Below Questions

What do you understand by the terms datareader object and dataset object?

725


Is datetime value type c#?

630


What's your approach to fetch static data in your windows form application?

716


What is dll in c#?

689


What is the extension of c# file?

625


Is it possible to inline assembly or il in c# code?

742


Is int reference type c#?

698


Which are access modifiers available in c#?

719


Can we override static class in c#?

649


Can you see a loop recorder?

653


If c# destructors are so different to c++ destructors, why did ms use the same syntax?

716


What is an enumerator in c#?

716


Which is faster hashtable or dictionary?

680


Why ienumerable is used in c#?

629


What are the advantages of using partial classes?

715