https://www.guru99.com/java-stack-hea... the following video demonstrates how memory is allocated in stack java & heap java.
This is complete guide to Java memory management
The JVM divided the memory into following sections.
Heap,
Stack,
Code,
Static.
What is Stack Memory?
Stack in java is a section of memory which contains methods, instance variables, and reference variables.
What is Heap Memory?
Heap is a section of memory which contains Objects and may also contain reference variables.
Like, share and subscribe our channel for more videos.
Watch more videos on our YouTube channel at / @guru99com
READ this as a book on Amazon by viewing at http://amzn.to/2han5hw
Visit our website for more! www.guru99.com
Read our blogs in https://www.guru99.com/blog/
FACEBOOK! Would you prefer to watch more about us? Like our page for more / guru99com
TWITTER! Tweet for us on Twitter with #guru99 and follow us on / guru99com
LinkedIn! Follow us here / guru99
THANKS! We appreciate you reading this and hope you have a wonderful day!
Sincerely,
Guru99
Watch video Java Stack and Heap - Java Memory Management online without registration, duration hours minute second in high quality. This video was added by user Guru99 22 January 2014, don't forget to share it with your friends and acquaintances, it has been viewed on our site 215,117 once and liked it 2.7 thousand people.