Explain about throw keyword?
Answer Posted / tiger kumar
yes,its used to throw the user defined exception.
But its not always good habit to use throw exception.
Some times we can predict it will throw the exception.If we
know the error will come there in the earlier means why we
need to use the exceptions.we can solve it while writtting
code itself.
Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
How does foreach loop work in c#?
What is pure abstract class in c#?
What is windows application in c#?
What is activator c#?
What is deadlock in c#?
Can derived classes have greater accessibility than their base types?
What is difference between int and int in c#?
How does inheritance work in c#?
What is static void main in c#?
What are anonymous types in c#?
What are custom exceptions?
How a two-dimensional array declared in C#?
Explain the difference between the debug class and trace class?
What is use of FormBoarderStyle Propertie
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?