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


Please Help Members By Posting Answers For Below Questions

What is the use of functional interface?

672


What is the difference between new and override in c#?

735


What is c-sharp (c#)?

708


What are methods in C#?

707


What are the ways in which client can create object on server in cao model?

727


What do u mean by delegation of authority?

713


Explain the process of abstraction with an example?

674


What is the default value of string in c#?

751


Does the variables of a private class-level inherited?

752


What is private variable?

664


How do I automate my desktop application?

685


Is string null or empty?

686


What are the 2 broad classifications of fields in c#?

712


Which one is trusted and which one is untrusted?

678


What is the purpose of a namespace?

653