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 is the class in c#?
What is an assembly in .net?
What language do desktop applications use?
Can I define my own exceptions?
What's the difference between class and object?
What is func c#?
What is the difference between yield and return?
What is the difference between malloc () and new?
What is difference between throw and throws in c#?
What is difference between function and method in c#?
What are extender provider components? Explain how to use an extender provider in the project.
What is datetime minvalue in c#?
What is the difference between “dispose” and “finalize” variables in c#?
Why are dynamic link library used over static one?
Explain the difference between proc. Sent by val and by sub?