Stack Memory & Heap Memory | What is The Difference Between Stacks and Heaps?

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

In this lecture we are going to discuss stack memory and heap memory. These are crucial concepts in computer science and software engineering.

Stack memory: local variables and function calls are stored on the stack memory. The size of the stack memory is usually small BUT on the other hand it is quite fast. If we instantiate a new object then the reference itself is pushed onto the stack but the object itself is present on the heap memory.

Heap memory: it is slower than the stack memory but the size of the heap is far greater than the size of the stack memory. Objects are stored on the heap memory.

Рекомендации по теме
Комментарии
Автор

Very clear explanation and presented in a very attractive way. There is obviously a lot of preparation work behind. Thank you for offering it for free.

anabelsa
Автор

4 years of collage no one taught us with this simplified mannaer. I finally understand it. Thank you 💛

malaakh
Автор

Beautiful explanation..very very clear description..Thank you so very much

shanisankar
Автор

I'm a 10-year C# / .Net developer and this is the best, concise explanation of heap vs stack memory allocation I've ever seen.

jamesyoo
Автор

This deserves way more views, such a clear, helpful explanation.

dieselguitar
Автор

One of the best explanations and illustration of concepts, Thank you

dbvs
Автор

way of explination very nice thank u so much

aishwaryajorve
Автор

explained it to perfection. many thanks!!!

raigeki.
Автор

Such a nice explanation..Thank you very much!

tanaydu
Автор

After 2 Days I have Clear Full Concept from here .Thanks

md.tangilurrahman
Автор

Thank you, for those of us who are not computer engineers and work codig this is very useful.

isaacplazas
Автор

very well explained!! thank you vey much for your dedication!! Be blessedfrom heaven!!

alainleclerc
Автор

Well explained. But who controls this stack and heap at runtime ? Operating system or java runtime ?

kcvinu
Автор

What if we create a method inside of a class? Does this method go to heap or stack?

emreaka
Автор

Holczer's Data Structure and Algorithms course in Udemy is the best. Period.

kmohan
Автор

Can U put this Images in description for download

abdomostafa
Автор

How memory management takes place to resolve the call frame activation record in explain using heap space.

maryamch
Автор

I have a question. if there are "if" or "for" statement inside their function, Do "if or for statement" also make their own stack frame? or just exist inside of their stack frame ?

앨런allen
Автор

"any object created in the heap space has global access and can be referenced from anywhere of the application". Is this statement true?

ziat
Автор

Your English is pretty good, great video.

unrealdevop