
static typing
Static typing is a programming feature where the type of each variable (such as number, text, or date) is declared and checked before the program runs. This means errors related to incorrect data types are identified early, during compilation or code writing, rather than at runtime. It helps catch mistakes quickly and makes code more predictable and easier to understand. For example, if a variable is defined as an integer, you can't assign it a text value later without causing an error. Static typing improves code reliability and maintainability, especially in large or complex software systems.