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 virtual class in C#?
Does google use c#?
Can we have multiple constructors in a class c#?
explain the three services model commonly know as a three-tier application.
What operator means?
What is cli in c#?
Write a C# program to find the Factorial of n
What is the difference between gettype and typeof in c#?
Is visual c# free?
What are the uses of namespaces?
Are structs value types or reference types?
What is Event - Delegate?
What is the difference between parse and tryparse in c#?
What is verbatim string literal in c#?
What is the difference between Java and .NET garbage collectors?