Sunday 9 August 2015

What is Exception in C#.Net

  Under the programs we write generally come across two different types of errors.
          1. Compile-Time Errors
         2.Run-Time Errors.       
                 An Error which comes into picture at the time of compiling the program is a compile time error. This could be due to syntactical mistakes and not considered to to dangerous. 
                 An Error which comes into picture at the executing a program is a run time error also known as exception. this could be due to various reasons like wrong implementation of logic . wrong in put supply the program and missing of required resources etc. and this are considered to be dangerous.

What happens when exception occurs in a problem :
                          When ever an exception occurs in a program . the program terminates abnormally on the same line where the exception occurs without executing the next lines of code and also displays a reason for abnormal termination in the form of exception message.
                

             

                  

No comments:

Post a Comment