C# Programming - Exception Handling - Discussion

Discussion :: Exception Handling - General Questions (Q.No.1)

1. 

Which of the following is NOT a .NET Exception class?

[A]. Exception
[B]. StackMemoryException
[C]. DivideByZeroException
[D]. OutOfMemoryException
[E]. InvalidOperationException

Answer: Option B

Explanation:

No answer description available for this question.

Mahesh said: (Jul 21, 2011)  
Because the heap memory is controlled by memory management of .Net.

Mahammad Moine said: (Sep 8, 2015)  
As far as we know that exception class is parent class and type of all exceptions are child classes, when an error occurs during run time CLR creates instance of exception class and through it which is catched by catch block, which stops abnormal termination of program and gives appropriate message.

In this process when CLR create instance just the same time constructor is automatically called it is rule, which is responsible for abnormal termination of program. Then how catch block stops abnormal termination of program?

Constructor is responsible for abnormal termination of program, when instance is created by CLR constructor is automatically called then how catch block stops abnormal termination of program?

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.