Compile-Time Errors |
Runtime-Errors |
These are the syntax errors which are detected by the compiler. |
These are the errors which are not detected by the compiler and produce wrong results. |
They prevent the code from running as it detects some syntax errors. |
They prevent the code from complete execution. |
It includes syntax errors such as missing of semicolon(;), misspelling of keywords and identifiers etc. |
It includes errors such a dividing a number by zero, finding square root of a negative etc. |