how do you do exception management

Answers were Sorted based on User's Feedback



how do you do exception management..

Answer / matt s

try - catch - finally. Catch most specific exceptions
first.

Is This Answer Correct ?    21 Yes 2 No

how do you do exception management..

Answer / manish agrahari

try
{
//try and do something here...
}
catch (SomeExeption ex)
{
//Handle the exception and take appropriate action
}
finally
{
//This code will *always* run irrespective if you have
//an exception or not. Usually this is some clean up of
//some sort though.
}

Is This Answer Correct ?    15 Yes 1 No

how do you do exception management..

Answer / hari

Try- Catch - Finally.

Is This Answer Correct ?    11 Yes 1 No

how do you do exception management..

Answer / bobby

try
catch
finally
Catch most specific exceptions
first.

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More C Sharp Interview Questions

What are the access-specifiers available in c#?

26 Answers   Syntel,


How do you determine whether a string represents a numeric value?

0 Answers  


What is private in c#?

0 Answers  


How do I declare inout arguments in c#?

0 Answers  


Why dataset is used in c#?

0 Answers  






What are the main reasons to use c# language?

0 Answers  


What is the different types of private assembly and shared assembly?

0 Answers  


Enlist the different types of classes in c#?

0 Answers  


What is a delegate, why should you use it and how do you call it ?

1 Answers  


Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }

2 Answers   Proteans,


What are three test cases you should go through in unit testing?

1 Answers   Siebel Systems, Wipro,


What is the difference between selection and projection?

0 Answers  


Categories