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
How do generics work in c#?
What's the difference between a method and a procedure?
What are the collections in c#?
Explain about multithreading?
Explain the use of Mutex in C#?
Why dependency injection is used in c#?
What is class method?
What is a hashset c#?
What's the difference between an integer and int?
What is array and arraylist?
How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?
What is an array class?
How do you comment in c#?
Why attributes are used in c#?
Why do we need events in c#?