Integer data type variables store integer values only. They store whole numbers which have zero, positive and negative values but not decimal values. Multiple programming languages support different syntax to declare an Integer variable. If a user tries to create an integer variable and assign it a non-integer value, the program returns an error.
Example of declaring an Integer variable:
int a = 2;
Variables of the integer data type are only capable of holding single values. These variables are not capable of holding a long list of values.