Explain about throw keyword?

Answer Posted / tiger kumar

yes,its used to throw the user defined exception.

But its not always good habit to use throw exception.

Some times we can predict it will throw the exception.If we
know the error will come there in the earlier means why we
need to use the exceptions.we can solve it while writtting
code itself.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is monitor in C#?

768


Difference between Value type & reference types ? and give the example in .Net?

711


Explain About friend and Protected friend

685


How can you achieve run time polymorphism in C#?

743


Why do we need indexers in c#?

645


Does the system.exception class have any cool features?

690


Explain when should you call the garbage collector in .net?

677


What is type safe code?

657


What is datareader c#?

665


Why do we need properties in c#?

645


What is static class in C#?

751


What are the features of c#?

691


Write the syntax for catching an exception in c#?

651


What is xpath in c#?

638


How is a string immutable?

682