Runtime and Compile Time
What is Runtime? #
- Refers to the time when an application, having completed the compilation process, is executed by a user.
What is a Runtime Error? #
- Refers to an error that occurs during program execution due to an unintended exceptional situation, even though the program has already been compiled and is running.
What is Compile Time? #
- Refers to the process where source code is written by a developer in a programming language like C or Java, and then converted into machine code that a computer can understand through the compilation process, becoming an executable program.
- All template programming is determined or executed at compile time.
What is a Compile-time Error? #
- Refers to errors that occur when compilation is hindered by issues such as Syntax errors or file reference errors that arise during the source code compilation process.
- When a compile-time error occurs, it indicates the problematic source code.
Error Types
| Runtime Error | Compile-time Error |
|---|
- Division by 0 error | 1. Syntax error
- NULL reference error | 2. Type Check error
- Out of memory error |