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 is the purpose of a console table?
If a child class instance is created, which class constructor is called first - base class or child class?
What does namespace mean?
What are winforms in c#?
What is static and use of it?
What is binding in c#?
What do u mean by thread safe?
What are the fundamental principles of oo programming?
How many types of serialization are there in c#?
What is difference between web and window application?
What are static and dynamic variables?
Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?
What is args c#?
What is asp net c# corner?
Is unboxing an implicit conversion?