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 difference between throw and throws in c#?
What is the difference between int16 and int32 in c#?
Which debugging tools you can use in the .NET ssSDK?
Explain states of a thread in c#?
What are concrete classes?
Can an exception be thrown from a catch block?
What does void do in c#?
how to stored and retrive video in Sql server using asp.net c#......?
What is difference between event and delegate in c#?
What do you know about WM_CHAR message?
What is a constructor in c#?
Define strong name in c#?
Is it possible to have a static indexer in c#? Allowed in c#.
What is the use of oops in c#?
Do void methods have parameters?