Memory Allocation: Heap and Stack
Understand the process of how data is stored in the memory and the difference between heap and stack.
We'll cover the following...
As a beginner, you need to have an idea of what is going on behind the curtain, especially when writing and executing code.
Memory (data storage)
So far, we have learned one important lesson: our code ultimately talks to the hardware in binary code. Whatever we write in Java is translated to 0s and 1s.
But where is it stored? Here comes the idea of memory. In computing, memory refers to a device that is used to store information for immediate use. Therefore, we can say that memory is primary storage.
Memory management is also important. When we write code and execute it, the computer dynamically allocates ...
Access this course and 1400+ top-rated courses and projects.