Feb 2, 2020

ERROR Compile time error, Runtime error

error, compile time error, runtime error, exception handling in java, python exception,
error

ERROR

            Error is the mistake that makes a program not function properly”. In programming there are two types of error which can raise during programming that’s are
  ð  Compile time error
  ð  Runtime error

COMPILE TIME ERROR

            “The error which is occurs in a program due to the syntactical mistakes. It is called compiling time error because it is detected at compiling time of program.”
            Syntactical mistake means the mistake which occur due to wrong syntax or incomplete statement. Such as missing of terminating statement ‘semicolon’, forget to declare a variable etc. Generally this type of program isn’t consider as a danger error because first thing is it can be detect at compiling time which is easy to eliminate and second thing is without solving this type of error the program does not work, so before handling our program to its owner we would satisfied that the program wouldn’t raise any compiling time error.

RUN TIME ERROR

            “The error that occur at run time is called run time error,”
This type of error is very dangers because it leads the abnormal terminate of program where the error is occurred without executing the next code due to terminating abnormally we can’t achieve the required output. its occur due to many reasons
  ð  Due to wrong implementation of logic
Wrong implementation of logic in such way we want to generate module of a number but mistakenly we use the division operator in place of module, therefore run time error occur due to wrong logic and note a point compiler never check the logic of program. Because logic can be diff. for programmer to programmer.
  ð  Due to wrong inputs supplied
Wrong input means that’s our program says input a double value but unfortunately the user enter any other value except double so it also caused for run time error.
  ð  Due to missing required resource
It is a sense that some program require some data form the computer drive at earlier the required data/resource is exist in that appropriate address in drive but some time later someone unknowingly delete or that resource from its place now run time error also occur due to missing of required resource.  
  ð  And many more like this

      RELATED TO ERROR
Exception
Exception handling

0 comments:

Post a Comment

Please do not enter any spam link in the comment box