title: Are variables stored on the stack or heap with their perspective value in Java?
body: <p>So in Java I know that primitive values will be on the stack and that reference values for objects will be stored on the heap. Now will the variable, which is used as a storage location in memory, also be in the stack with that associated primitive value or be on the heap with the associated reference type value?</p>