- Variable in Java is a data container that stores the data values during Java program execution.
- Every variable is assigned data type which designates the type and quantity of value it can hold.
- Variable is a memory location name of the data.
The Java variables have mainly three types :
- Local Variable
- Instance Variable
- Static Variable