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 an actual parameter?

492


How do I create multifile assembly?

508


What is the difference between dictionary and hashtable in c#?

470


What is the difference between abstract and abstraction?

442


How to prevent the error while updating ui control from another thread?

502






State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

485


Which programming language is best for desktop applications?

459


Can you describe iuknown interface in short?

617


Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server

1459


What is difference between write and writeline in c#?

488


What is different between Boxing and Unboxing?

590


What is the use of inheritance in c#?

485


What is difference between override and new in c#?

511


What is the difference between interface and abstract class in c#?

461


What is a console in c#?

485