Like constants, a variable is a named entity that holds a data value. You can define the names, types, and initial values of the variables that you will use in your programs. Unlike constants, however, the values of variables can be changed during execution.