An integer is a common primitive type in most programming languages.
primitive type
idiomA data type provided by a programming language as a basic building block, such as integer, character or Boolean.
Before you create complex objects, you must understand how to use each basic primitive type.
The compiler optimizes performance by storing each primitive type directly in the stack memory rather than on the heap.