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 master page in asp net c#?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Why multiple inheritance is not possible in c#
What is Asynchronous call and how it can be implemented using delegates?
What is difference between class and interface in c#?
What is the difference between console application and windows application?
How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?
Which are the access modifiers available in c#?
What is the use of properties window?
Can you declare a C++ type destructor in C# like ~MyClass() ?
What is .net console?
What is marshalling 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)