Sign in to confirm you’re not a bot
This helps protect our community. Learn more
Heap Space vs. Stack Memory in Java | Call Stack Explained | Memory Allocation | Geekific
836Likes
23,352Views
2021Jun 23
Discord Community:   / discord   GitHub Repository: https://github.com/geekific-official/ When you create new variables or instantiate objects, when you call a new method, declare a String, or perform any similar operation, the Java Virtual Machine allocates memory for these operations. The memory reserved is either inside the Stack or the Heap part of the memory. In this video, we explain how the JVM divides the memory into a stack and a heap space, allowing your applications to run in an optimal and manageable way. Timestamps: 00:00 Introduction 00:38 Practical Code Example 04:19 Heap Space vs. Stack Memory 06:02 Thanks for Watching! If you found this video helpful, check other Geekific uploads: #Geekific #HeapSpace #StackMemory

Follow along using the transcript.

Geekific

41.5K subscribers