Answer Posted / swapna
if at that point you know that an error has occurred, then
why not write the proper code to handle that error instead
of passing a new Exception object to the catch block?
Throwing your own exceptions signifies some design flaws in
the project.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
list the steps in code compilation in c#?
what is inheritance and an example in vb.net and c# of when you might use it?
Explain the different types of delegates used in c#.
What exactly is serverless?
Can a static class have a constructor c#?
What is type class in c#?
Can we maintain state in webservice?
What is hashtable c#?
What is the default value of guid in c#?
What is an escape sequence?
Explain the various types of classes used in c#?
Is array reference type in c#?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
What is a private class in c#?
What are assemblies?