Java Software Engineer Question:
Download Questions PDF

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

Answer:

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

Local variables are stored on the stack.

Download Java Software Engineer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know what is a Service?Tell us what is the marker interface in Java?