Variables in Java are classified into primitive and reference variables. From the programmer’s perspective, a primitive variable’s information is stored as the value of that variable, whereas a reference variable holds a reference to information related to that variable .