how do you do exception management
Answers were Sorted based on User's Feedback
Answer / matt s
try - catch - finally. Catch most specific exceptions
first.
Is This Answer Correct ? | 21 Yes | 2 No |
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 |
Answer / bobby
try
catch
finally
Catch most specific exceptions
first.
Is This Answer Correct ? | 5 Yes | 2 No |
What are variables in c#?
Why we use methods in c#?
Why multiple Inheritence is not used in C#?
Why do we use threads in c#?
When do you generally use a class over a struct?
Where does the dispose method lie and how can it be used to clean up resources?
What is multicast delegate explain with example?
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?
What is code verification?
what is satelite assembly?
What is the interface in c#?
Explain publishers and subscribers in events.