Java Variable
A Java variable is given a name (or identifier), such as area, age, height, and the like. The name uniquely identifies each variable, assigning a value to the variable and retrieving the value stored. Variable is a name of memory location. There are three types of variables in java: local, instance and static. Java Variable: …