In java, a variable is anything that can change its value during the execution period, while a field (which can also be called a member variable of a class) belongs to the class.
A constant / ending may be though (although some may disagree) as the opposite of a variable.
A Field belongs to a class and can be a variable or a constant / final.
source
share