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
Is c# slower than java?
Is null or empty in c#?
Can you inherit multiple abstract classes in c#?
what is an event? Define delegate?
What is parse method in c#?
What do you mean by “finalize” and “finally” methods in c#?
What is difference between array and arraylist c#?
Explain constructor in c#?
What's the c# syntax to catch any possible exception?
Are multiple data types stored in System.Array?
What language do desktop applications use?
Explain the 3 types of properties in c# with an example?
What debugging tools come with the .NET ssSDK?
What are interfaces in c#?
What is use of hashtable in c#?