Very educative post. In summary:
Primitive and reference variables are stored on the Stack, while the objects are stored on the heap. And the good news for Java developers, you don't have to bother by destroying objects after use, the almighty JVM takes care that for us under the hook.
Very educative post. In summary:
Primitive and reference variables are stored on the Stack, while the objects are stored on the heap. And the good news for Java developers, you don't have to bother by destroying objects after use, the almighty JVM takes care that for us under the hook.
Exactly!!