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
What is the difference between method overriding and method overloading?
Which .gang of four. Design pattern is shown below?
What are controls in c#?
Why singleton class is sealed in c#?
What is ildasm and obfuscator in net?
What does void mean in c#?
Write a short note on interface?
What is generic and non generic collections in c#?
How many types of inheritance are there in c#?
We cannot create instances of static classes. Can we have constructors for static classes?
What is the difference between the debug class and trace class? Documentation looks the same.
What is serialization in unity?
How to sign an assembly with strong name?
Is Facebook a desktop application?
Can we have 2 main methods in c#?