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 uses of namespaces?

0 Answers  


what is satelite assembly?

5 Answers   ABC,


What does async mean in c#?

0 Answers  


Can you prevent a class from overriding?

3 Answers  


Can you declare a class or a struct as constant?

0 Answers  






Explain the difference between abstract class and interface.

0 Answers   Accenture,


What is a float?

0 Answers  


Differentiate between copy and default constructor.

0 Answers   TCS,


What are All kind of access specifiers for a class and for methods

0 Answers  


What are Indexers in C#?

0 Answers   SwanSoft Technologies,


What is action c#?

0 Answers  


How do I know if executenonquery is successful c#?

0 Answers  


Categories