Java variables are the location to store data which ultimately refers to data types. Each data type in Java has some memory allocated in stack.
Read this post on inviul.com