What do you understand by variable
Answer : Java variable is basically use as unit of storage in program. A variable is defined by the combination of type, identifier and an optional initializer. When we define the variables the they all have a scope, which defines their visibility, and a lifetime.
All variables should be declared before they can be used. The basic form of a variable declaration is shown below: