how do you do exception management
Answer Posted / 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 |
Post New Answer View All Answers
Can a struct be null?
Explain states of a thread in c#?
Do loops in c#?
What is the difference between class and namespace?
how to implement a web service in .net
Explain About DTS package
What is a private class in c#?
What is overloading with example?
What is the difference between protected and private?
What is the difference between static class and singleton class in c#?
What is multiple interface in c#?
What is a hash table c#?
Is array passed by reference in c#?
What is activator c#?
What is eager loading in c#?