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 is the difference between a field and a property in c#?
What is the use of nullable types in c#?
What is an actual parameter?
Why singleton is sealed?
What is an icollection in c#?
Can you see a loop recorder?
What does assemblyinfo.cs consists ?
Why do we use abstract class in c#?
Explain about Destructor method?
How do you convert byte array to hexadecimal string, and vice versa?
Can multiple catch blocks be executed?
What is the use of thread join in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)