An integer is a data type [→] that stores numbers, numbers without fractional parts.
That would include zero and negative numbers as long as they have no fractional parts as well.
Statically-typed [→] programming languages require the developer to specify the data type for all variables and in the case of an integer the programming language will designate the right amount of space in memory enough to hold this value.
Here is another article you might like 😊 What Is Serialization In Programming?