Stack Vs Heap in Java

This is my take on Heap Vs Stack in Java

1. All objects are stored in Heap
2. All references and primitives are stored in Stack.

A very good article about this

http://www.itcsolutions.eu/2011/02/06/tutorial-java-8-understand-stack-and-heap/


No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days