Heap Space vs. Stack Memory in Java | Call Stack Explained | Memory Allocation | Geekific

preview_player
Показать описание

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
Рекомендации по теме
Комментарии
Автор

I've spend literally hours trying to understand how stack and heap work, but your video did it in just 6 minutes!

Chestor
Автор

This is one of the best videos i've seen on stack and heap in Java, you need more views!!

blovio
Автор

Clean and clear. Yes need a second part.

vengateshm
Автор

You keep things simple to understand, good job and keep going :)

aminesafi
Автор

really a great video about memory in java

MohammedRAIS-xl
Автор

Thank you so much for your clear explanation !!!!

ucthainguyen
Автор

Thank you so much!!! It is so clear!!!

Mona-ghmh
Автор

Спасибо, все очень доходчиво и понятно!

tkr
Автор

In this stack area jvm give the machine code to thread that means entire program so that is where stored and static method executes static area so thread bring to static memorey and execute sir

krishnashauzshenikala
Автор

What did you create the buildChannel method? You can instantiate a new Channel object in the main method with this line:

Channel channel = new Channel(id, name);

joeklinck
Автор

great videos, great explaination, thankyou sir 👏

dhanandwirizki
Автор

Amazing, questions please:
1- @3:04 why Channel reference is created ? There is no local variable Channel, there is only id and name
2- is ‘this’ always created when new operator is used and object created? This is why we can use this in our program?

Thank u

EliasEH
Автор

Any logical way to see the memory execution while running the program to better understand.

ShivSingh-xfi
Автор

Can make implementation of abstract data types in java

raghavsharma
Автор

Could you do same for garbage collection please

salahayman
Автор

where non static methods are stored it is in the heap or stack

thimothipalipaka
Автор

Good explanation. Thank you! However, the sound of the video is not that good on the ears. I think you need a better mic for your videos

jakhongirruziev
Автор

Please upload the garbage collector video

FluteVJ