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
How do I run managed code in a process?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
Expalin the way you implement inheritance by using VB.NET/C#?
What is dictionary and hashtable in c#?
Is it possible to force garbage collector to run?
What is the difference between list and dictionary in c#?
What are partial types in c#?
Describe two uses of the “using” statement during the operation of c#?
Explain the OOPS concept in C#?
What is system predicate?
What are anonymous functions in c#?
How many types of constructor are there in c#?
What does type safe mean in c#?
What are reflections in c#?
What is managed or unmanaged code?