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/
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:
Post a Comment