Discussion :: Exception Handling - General Questions (Q.No.1)
|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:
Email : (optional)
» Your comments will be displayed only after manual approval.