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
What is monitor in C#?
Difference between Value type & reference types ? and give the example in .Net?
Explain About friend and Protected friend
How can you achieve run time polymorphism in C#?
Why do we need indexers in c#?
Does the system.exception class have any cool features?
Explain when should you call the garbage collector in .net?
What is type safe code?
What is datareader c#?
Why do we need properties in c#?
What is static class in C#?
What are the features of c#?
Write the syntax for catching an exception in c#?
What is xpath in c#?
How is a string immutable?