Тёмный

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

Geekific
Подписаться 35 тыс.
Просмотров 21 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@Chestor1988
@Chestor1988 2 года назад
I've spend literally hours trying to understand how stack and heap work, but your video did it in just 6 minutes!
@geekific
@geekific 2 года назад
I am so glad it helped!
@blovio
@blovio 2 года назад
This is one of the best videos i've seen on stack and heap in Java, you need more views!!
@geekific
@geekific 2 года назад
Glad you liked it! Thanks :)
@vengateshm2122
@vengateshm2122 3 года назад
Clean and clear. Yes need a second part.
@geekific
@geekific 3 года назад
Happy you liked it :) Deal, will add it to the list of upcoming future uploads!
@MohammedRAIS-x9l
@MohammedRAIS-x9l 11 месяцев назад
really a great video about memory in java
@vishalalhat3659
@vishalalhat3659 Год назад
Best animated explanation !!!
@aminesafi7261
@aminesafi7261 7 месяцев назад
You keep things simple to understand, good job and keep going :)
@Avineshutube
@Avineshutube 4 месяца назад
Excellent !! Thanks you !!
@ucthainguyen289
@ucthainguyen289 Год назад
Thank you so much for your clear explanation !!!!
@booksbybytes
@booksbybytes 4 месяца назад
high quality!
@mutalibgozalov7208
@mutalibgozalov7208 6 месяцев назад
thanks for explanation
@--36--
@--36-- 2 года назад
Part 2 is needed!
@geekific
@geekific 2 года назад
It is on my list of upcoming videos! Stay Tuned!
@krishnashauzshenikala9240
@krishnashauzshenikala9240 10 месяцев назад
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
@joeklinck
@joeklinck 11 месяцев назад
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);
@1guana210
@1guana210 Год назад
Amazing explanation tysm
@krishnashauzshenikala9240
@krishnashauzshenikala9240 10 месяцев назад
Superb
@tkr4961
@tkr4961 2 года назад
Спасибо,все очень доходчиво и понятно!
@peshutanpavri1599
@peshutanpavri1599 Год назад
Thank you so much for the detailed explanation, good tutorial, crystal clear and well explained. Just one question, at 3:02, when the local variable is created in a parent method and that value passed as a parameter to a child method, does that same variable need to be duplicated in the stack memory twice ?
@geekific
@geekific Год назад
I am so glad I could be of help :) It is not actually duplication, because in the stack you only have a reference to the same instance in the heap. So, there is one instance but two references pointing at it, each reference is encapsulated within the scope of that call in the call stack. Hope this answers it!
@peshutanpavri1599
@peshutanpavri1599 Год назад
@@geekific Thank you, I was talking about primitive local variables, but yeah I of figured it out, hence pass by value :)
@nicolahcm
@nicolahcm 2 года назад
Excellent video! Subscribed
@EliasEH89
@EliasEH89 Год назад
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
@geekific
@geekific Год назад
Thank you! When an object is created in the Heap Space only a reference to it is created in the Stack Memory, this way the same object can be referenced from multiple sources, and yes a this reference is created for every object. Cheers!
@ShivSingh-x6f8i
@ShivSingh-x6f8i Год назад
Any logical way to see the memory execution while running the program to better understand.
@Mona-gh3mh
@Mona-gh3mh Год назад
Thank you so much!!! It is so clear!!!
@dhanandwirizki2911
@dhanandwirizki2911 2 года назад
great videos, great explaination, thankyou sir 👏
@geekific
@geekific 2 года назад
You are welcome! Glad it was helpful :)
@LilikeNel
@LilikeNel Год назад
10/10
@raghavsharma4195
@raghavsharma4195 3 года назад
Can make implementation of abstract data types in java
@geekific
@geekific 3 года назад
Hello, not sure if I got you correctly, but here: ru-vid.com/group/PLlsmxlJgn1HLQ8WxpuToXlaAcAw1TPlyP you can find all our uploads related to Abstract Data Types and their implementations in Java. Cheers!
@salahayman3513
@salahayman3513 2 года назад
Could you do same for garbage collection please
@geekific
@geekific 2 года назад
Added it to my list of upcoming videos! Stay Tuned :)
@jakhongirruziev1698
@jakhongirruziev1698 Год назад
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
@geekific
@geekific Год назад
Thanks! Try watching a more recent video, we are trying to improve the sound quality with every upload! Cheers :)
@thimothipalipaka852
@thimothipalipaka852 2 года назад
where non static methods are stored it is in the heap or stack
@geekific
@geekific 2 года назад
Hello! All non-static members (variables and methods) are stored inside their corresponding object memory in the heap because you can only reach them via that object. Hope this answers your question!
@nikvolkov1409
@nikvolkov1409 2 года назад
Garbage collector video please:)
@geekific
@geekific 2 года назад
It is in the making!!
@FluteVJ
@FluteVJ Год назад
Please upload the garbage collector video
@geekific
@geekific Год назад
It is already out: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-XXOaCV5xm9s.html! Hope it helps :)
Далее
The Java Memory Model - The Basics
23:41
Просмотров 129 тыс.
Every Developer Should Know This
15:38
Просмотров 28 тыс.
Pointers and dynamic memory - stack vs heap
17:26
Просмотров 1,4 млн
Stack vs Heap Memory in C++
19:31
Просмотров 572 тыс.
Stack vs Heap Memory - Simple Explanation
5:28
Просмотров 238 тыс.