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 are the access-specifiers available in c#?
How do you determine whether a string represents a numeric value?
What is private in c#?
How do I declare inout arguments in c#?
Why dataset is used in c#?
What are the main reasons to use c# language?
What is the different types of private assembly and shared assembly?
Enlist the different types of classes in c#?
What is a delegate, why should you use it and how do you call it ?
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }
What are three test cases you should go through in unit testing?
1 Answers Siebel Systems, Wipro,
What is the difference between selection and projection?