Answers

Question and Answer:

  Home  Java Software Engineer

⟩ Explain me how does the JVM handle storing local variables vs storing objects?

Objects are stored on the heap. Variables are a reference to the object.

Local variables are stored on the stack.

 132 views

More Questions for you: