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 variables in c#?

0 Answers  


Why we use methods in c#?

0 Answers  


Why multiple Inheritence is not used in C#?

8 Answers   Symphony,


Why do we use threads in c#?

0 Answers  


When do you generally use a class over a struct?

0 Answers  






Where does the dispose method lie and how can it be used to clean up resources?

2 Answers   TCS, Wipro,


What is multicast delegate explain with example?

0 Answers  


If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?

2 Answers  


What is code verification?

0 Answers  


what is satelite assembly?

5 Answers   ABC,


What is the interface in c#?

0 Answers  


Explain publishers and subscribers in events.

0 Answers  


Categories