Explain about throw keyword?
Answer Posted / vibhor shukla
throw is used to throw an exception from any part of the
program not necessarily the method only.
whereas throws is particularly used to throw an exception
arising out of the use of a method to the exception handler
which is the catch block..
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
What are native functions?
What is use of private class in c#?
Why dependency injection is used in c#?
What is boolean conditions in c#?
What is sql transaction in c#?
Explain the difference between Response.Write () and Response.Output.Write ().
How the versioning applies to Assemblies or can you explain version numbers?
How can we make a thread sleep for infinite period ?
Can we override interface method?
Does c# provide copy constructor?
What is meant by console programming?
Why is it called c sharp?
What is the use of generics in c#?
How long will it take to learn c#?
When do you generally use a class over a struct?