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


Please Help Members By Posting Answers For Below Questions

How do I do a case-insensitive string comparison?

692


What are different types of classes in c#?

645


Describe two uses of the “using” statement during the operation of c#?

716


What is uint64?

704


What is an object pool in .net?

822


What is difference between ilist and list in c#?

653


Compare and contrast between the System.Array.CopyTo() and Clone()?

744


How do I edit a dll file?

630


What is instantiating a class?

700


What is sorted list in c#?

656


Is there an equivalent to the instanceof operator in visual j++?

738


What are the concepts of dispose method?

677


What is a Assembly?

716


What is dynamic object in c#?

680


What is assembly version series sequence?

723