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
What is access modifier in c#?
What is razor view in c#?
Explain the constructor in c#.
How can we set the class to be inherited, but prevent the method from being over-ridden?
What is using keyword?
What are native methods?
What do you mean by sealed classes and static classes?
What do u mean by delegation?
Does the system.exception class have any cool features?
Which are access modifiers available in c#?
Is there hashmap in c#?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
How does one compare strings in c#?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
Do void methods have parameters?