Explain about throw keyword?
Answer Posted / mandeswara rao
Before catching an exception it is must to be thrown first.
This means that there should be a code somewhere in the
program that could catch the exception. We use throw
statement to throw an exception or simply use the throw
keyword with an object reference to throw an exception. A
single argument is required by the throw statement i.e. a
throwable object.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What are strong name assemblies?
How string definitions will prevent escaping on backslashes in C#?
Give some examples for built in datatypes in c#?
What is sealed class in c#?
What does out mean c#?
What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?
What is xml serializer?
What does xpath return?
Why is aws serverless?
What is a partial class in c#?
What is difference between float and decimal?
How do I create a multilanguage?
What is the default value of date?
Are arrays immutable c#?
What does string format do?