Which of the following is not true for .NET exception?

Options
- All exceptions in .NET are derived from Exception base class
- Exceptions can’t be generated programmatically
- We have system exceptions and application exceptions in .NET


CORRECT ANSWER : Exceptions can’t be generated programmatically

Discussion Board
java

java

parshuram 01-2-2019 12:33 AM

.NET Exceptions

The question is about not a true statement for .NET exception. So the given answer is correct. We can generate exceptions programmatically.

Prajakta Pandit 09-9-2015 01:47 AM

Exceptions

I think exceptions can be generated programmatically and all exceptions are derived from base class exception.

Tanveer Srivastava 10-19-2014 10:50 PM

wrong answer

- correct answer is A, since it is not true that all exceptions derive from exception base class
- of course can one generate an exception programmatically with the keyword throw!


Chris 02-25-2014 05:25 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement