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 Wrapper class in dot net?
What is difference between destructor and finalize?
What are access modifiers used for?
What are object pooling and connection pooling and difference between them?
What is difference between ilist and list in c#?
What are the fundamental differences between value types and reference types?
Why do we need generics?
What is the difference between finally and finalize block?
Describe how a .net application is compiled and executed
What are cshtml files?
What is difference between an Structure and Class?
What is the difference between serialization and deserialization in c#?
Can constructor be overloaded in c#?
Explain how to use an extender provider in the project.
What is dto c#?