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 does addressof operator do in background ?
How many types of constructors are there?
Why would you use a class property in c#?
Can we create extension method for interface?
What is a console in c#?
What is generic method in c#?
What is the difference between int.parse and int.tryparse methods?
Define an array?
What is difference between === and ==?
Is versioning applicable to private assemblies?
Which sorting algorithm is best?
What are jump statements in c#?
What is the default value of decimal in c#?
What is an escape sequence? Name some string escape sequences in c#.
What is lock statement in C#?