Check out example codes for "what is a variable in java". It will help you in understanding the concepts better.

Code Example 1

int // int is a variable the stores numbers
string // a variable for storing text

Code Example 2

##	Variable
- Container which holds the value while the Java program is executed. 
- Assigned with a data type. 
- Name of memory location. 

##	There are three types of variables in java: 
1) Local variable 
2) Static (or class) variable 
3) Instance variable

Learn ReactJs, React Native from