Stack vs Heap Memory - Java Memory Management (Pointers and dynamic memory)

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 127

  • @shravan35
    @shravan35 4 ปีที่แล้ว +15

    I loved the way you have merged the whiteboard series with the previous core java series from the continuation basis, such a detailed amazing job!! On top of the video being amazing as ever even the organization of it adds more sense and logic to the video. Hats off Sir!

    • @naveenautomationlabs
      @naveenautomationlabs  4 ปีที่แล้ว +1

      Glad that it helped you to learn 😊

    • @shravan35
      @shravan35 4 ปีที่แล้ว +1

      @@naveenautomationlabs Very much Sir! :-)

  • @Mayank-ff9mq
    @Mayank-ff9mq ปีที่แล้ว +1

    One of the best lectures i have seen till date on Java Memory Allocation !!!

  • @vikramreddy7586
    @vikramreddy7586 4 ปีที่แล้ว +3

    This video is GOLD!! Real life Jeetu Bhaiya!!

  • @takeshiasahi5494
    @takeshiasahi5494 3 ปีที่แล้ว +2

    You said it was tough, then taught me like I was 5. Great video. Thanks a lot sir.

  • @baan1221
    @baan1221 3 ปีที่แล้ว +3

    Hi Naveen, Java was a scare for me even after doing MCA and this destroyed my career. But am following ur videos now, U made it sooo.... easy that am am now half way thru ,confident and willing to learn more. Cant thank you enuf!!

  • @afifahmed1183
    @afifahmed1183 3 ปีที่แล้ว +1

    Thank you very much. :) Selenium is a hot cake in USA currently. And i am learning from your youtube videos.

  • @askmeveera
    @askmeveera 4 ปีที่แล้ว +3

    Great Naveen! , I still remember the old video about Java Memory somewhere from 2018 here,Which did great help in my interviews. watching this too to erudite my skills, Thank You

  • @Sani_sahi
    @Sani_sahi 3 ปีที่แล้ว +2

    I take screenshots of all ur lessons to revise later. You are so dedicated to your work and serving people by sharing knowledge.
    Thank you so much Naveen 😇

  • @soodharshal
    @soodharshal ปีที่แล้ว +1

    Thanks Naveen for this wonderful topic on Java memory management

  • @anannya9909
    @anannya9909 3 ปีที่แล้ว

    you are the best teacher I have seen till date! THANK YOU SO MUCH for knowledge sharing. God bless you.

  • @mehmetnobel6731
    @mehmetnobel6731 2 ปีที่แล้ว

    Thanks a lot, Naveen for your dedication and awesome job. You are amazing! The beauty of your lecture and speech is you are not talking in an academic and boring style but giving examples from the real work env. with attention-grabbing manners. Again, many and warm thanks for your precious efforts. Follow you with great pleasure!

  • @Welcomeall143
    @Welcomeall143 2 ปีที่แล้ว

    The small line on your short speaks alot sir . Thank you very much for your core Java collection, it's really eassy to understand the back ground how Java works, hope you continue this good for long sir.

  • @moviebuff3030
    @moviebuff3030 3 ปีที่แล้ว +2

    Ye video to bawal tha. Ekdum jo bhi abhi tak study kiya tha usse pura alag. Like welcome to the reality. Thanks by the way. 🌷🌷

  • @santhoshiyada1675
    @santhoshiyada1675 3 ปีที่แล้ว

    It's the best video on memory management sir!!! Such a clear and wonderful explanation...

  • @waheedabbas3915
    @waheedabbas3915 3 ปีที่แล้ว +1

    Just one word, simple and awesome

  • @shankumondal2881
    @shankumondal2881 3 ปีที่แล้ว +4

    A very complex topic has been clarified in a simple way.
    Loved ❤️ it

    • @jatinsharma3792
      @jatinsharma3792 2 ปีที่แล้ว

      It is beautiful to understand insides about Tech.

  • @justreason5868
    @justreason5868 ปีที่แล้ว +2

    Thank you very much for this detailed explanation. I'd recommend this.

  • @87harshmehta
    @87harshmehta 2 ปีที่แล้ว

    I paused the video. Ordered the same T-shirt and continued 😄
    Very informative video.
    Appreciated all your efforts towards the community 🙏

  • @HumHaiSidheSadhe
    @HumHaiSidheSadhe 3 ปีที่แล้ว +2

    very well explained in detail and in simple way Naveen! Thanks.

  • @rajanideshpande1990
    @rajanideshpande1990 3 ปีที่แล้ว

    Hey Naveen. It so happened that I felt you are teaching me live and I almost went to unmute myself to ask a doubt in mid of your video. Thanks so much for these sessions, they are really helpful.

  • @gsathyanarayana7366
    @gsathyanarayana7366 3 ปีที่แล้ว +1

    I loved the way you presented it and it's very clear and understandable. This would be really helpfull to the people who are in job hunting. Thanks alot for sharing your knowledge across ....!!

  • @jatinsharma3792
    @jatinsharma3792 2 ปีที่แล้ว +1

    Love your gyan.!! Impresive Thanks for mathematical expression.

  • @Islamicvideoreaction880
    @Islamicvideoreaction880 2 ปีที่แล้ว

    I have seen many tutorials of Java but not completely satisfied. After watching this tutorial. I got so happy that I have subscribe it from all my emails. Actually I was stuck with memory allocation that how does. Heap area or stack area or method area really work?🤔🤔🤔 Finally I got it 😁🙂 thanks a lot sir 💗

  • @SarangHoley
    @SarangHoley 4 ปีที่แล้ว +2

    Long awaited topic & thanks for covering it on white board 👍😊

  • @mahalasakini5045
    @mahalasakini5045 7 หลายเดือนก่อน +1

    Thanks a lot, this is really very interesting session and got to know the memory management in java

  • @autogarage8559
    @autogarage8559 4 ปีที่แล้ว +3

    *Naveen AutomationLabs* Good content

  • @hussainshaik4752
    @hussainshaik4752 3 ปีที่แล้ว +1

    @Naveen, Your explanation was superb..... you made it very simple....

  • @manupriyar8169
    @manupriyar8169 7 หลายเดือนก่อน

    So nice.. clear and understandable. Thankyou

  • @ramji_19
    @ramji_19 4 ปีที่แล้ว

    Really worth the time spent in listening to this video. Great work.

  • @bongtube1983
    @bongtube1983 8 หลายเดือนก่อน

    Thank you for explaining it in so easy way. kudos!

  • @fayazbaig2490
    @fayazbaig2490 4 ปีที่แล้ว +1

    Thank you for this series for continuous enhancement of our skills

  • @user-qg1qg2vi4c
    @user-qg1qg2vi4c 3 ปีที่แล้ว +1

    Excellent video, thank you so much for your help understanding the basics!

  • @vasavip1628
    @vasavip1628 4 ปีที่แล้ว +2

    Awesome Naveen!!

  • @MadiraSarkar
    @MadiraSarkar 4 ปีที่แล้ว +2

    Sir , you are amazing. It’s the combination of your knowledge and teaching style which make your tutorials so unique . Thank you so much for your kindness.Looking forward to the next topic 🙏🏻

  • @gowthamsankaran67
    @gowthamsankaran67 ปีที่แล้ว

    Thank you so much for the video. Please do more in-depth videos like this.

  • @niteshbhati6496
    @niteshbhati6496 ปีที่แล้ว +1

    good explanation....keep up the good work🙂

  • @ABAutomationHub
    @ABAutomationHub 2 ปีที่แล้ว +1

    Very nicely explained.. Thanks for covering these complex topics in so much detail.

  • @jatinsharma3792
    @jatinsharma3792 11 หลายเดือนก่อน +1

    If the Live classe with the Cap I guess people love to focus more in the lectures, btw you look good with cap. :D

  • @dineshdkumar1771
    @dineshdkumar1771 4 ปีที่แล้ว

    absolutely marvelous, Thanks Naveen

  • @dhirajpawar6429
    @dhirajpawar6429 ปีที่แล้ว

    Excellent video, thank you so much for your help understanding the basics!, Your doing well Job 💯

  • @Driverforcash
    @Driverforcash 2 ปีที่แล้ว

    Naveen Sir - Great Explanation of Stack, Heap and MetaSpace. The final comparison between Stack Vs Heap was quick and easy to grasp.

  • @almajabin7898
    @almajabin7898 3 ปีที่แล้ว

    I just loved the topic the way you covered. Thanks a ton!

  • @sreenathmm813
    @sreenathmm813 3 ปีที่แล้ว +1

    Brilliant Naveen !!!

  • @indranilpalit5799
    @indranilpalit5799 2 ปีที่แล้ว

    Hey naveen, I really liked your shirt, we as a QA really make devs cry

  • @Adhurapan
    @Adhurapan 2 ปีที่แล้ว

    Hi Naveen... You have a great teaching skill... I have been watching your videos since morning continuously and still I am not boared of it 🤩 Anyways .. Your t-shirt have a nice quote😉

  • @shivanitondak1206
    @shivanitondak1206 2 ปีที่แล้ว

    Thank you for all your efforts

  • @Islamicvideoreaction880
    @Islamicvideoreaction880 2 ปีที่แล้ว

    Please keep it up like this ways to make easy to understand 🙂🙏🙏

  • @tejaswiniurs5870
    @tejaswiniurs5870 3 ปีที่แล้ว +1

    Nice explanation :) I liked the words on your T-shirt "I make Developers Cry" haha ;)

  • @advaitatt7784
    @advaitatt7784 2 ปีที่แล้ว

    Thanks

  • @intellectualnews9828
    @intellectualnews9828 4 ปีที่แล้ว +2

    Tq I was finding that is exactly but I couldn't able. Thank you sir

  • @vinith2320
    @vinith2320 3 ปีที่แล้ว

    Naveen you are gem ❤
    Thank you .

  • @archanakhandagle2768
    @archanakhandagle2768 4 ปีที่แล้ว +1

    Thank you sir it was very helpful 😊

  • @gunjankapoor9163
    @gunjankapoor9163 4 ปีที่แล้ว

    Metaspace was interesting, thanks for the detailed video.

  • @sibtainsyed1103
    @sibtainsyed1103 3 ปีที่แล้ว +1

    Very well Explained by the way nice shirt :D

  • @vibhagupta2618
    @vibhagupta2618 4 ปีที่แล้ว +2

    superb video

  • @sourabhyadav596
    @sourabhyadav596 3 ปีที่แล้ว +1

    Very helpful content.

  • @jinitescapematrix
    @jinitescapematrix 2 ปีที่แล้ว

    very good explaination sir

  • @MDHOSSAIN-gj5ve
    @MDHOSSAIN-gj5ve 4 ปีที่แล้ว +2

    Awesome video.

  • @shobhit9826
    @shobhit9826 4 ปีที่แล้ว +1

    This is awesome 👏

  • @tarunsoni6971
    @tarunsoni6971 2 ปีที่แล้ว +1

    A question in the first 5 mins itself, you said that stack memory is LIFO and the Stack space for M1 and its local variables is at the bottom then how the memory is deallocated from the bottom... I am already confused.

  • @gauravsalagare8120
    @gauravsalagare8120 4 ปีที่แล้ว +3

    Thanks Naveen,
    One question,
    Where the string pool is stored, in heap memory or metaspace?

    • @ADIL7777777777777777
      @ADIL7777777777777777 4 ปีที่แล้ว

      In heap memory they have allocated a special space to store string which is metaspace .

    • @SachinSharma-fr1vb
      @SachinSharma-fr1vb 3 ปีที่แล้ว +1

      string constant pool is part of heap area where string literals are stored. Metaspace is different n not part of heap. Static members like variable ,methods are store in metaspace which take memory from native OS.

  • @indra-jx2zh
    @indra-jx2zh 4 ปีที่แล้ว +2

    Thank you Naveen

  • @prikshitverma3885
    @prikshitverma3885 4 ปีที่แล้ว +1

    Are sir nice video!!! and Nice tee..!!!

  • @idohadad8882
    @idohadad8882 3 ปีที่แล้ว +1

    The best!

  • @Ashokkumar-wj5mw
    @Ashokkumar-wj5mw 4 ปีที่แล้ว +1

    Hi Naveen, Can you please make a video on Spring cloud contract testing

  • @saxena3718
    @saxena3718 3 ปีที่แล้ว +1

    I think this should be sufficient for any interview questions on JVM

  • @soopastylin1932
    @soopastylin1932 3 ปีที่แล้ว +3

    love the shirt ...like a bosss

  • @supun_sandaruwan
    @supun_sandaruwan 2 ปีที่แล้ว

    thank you sir amazing explanation

  • @evieranawat4480
    @evieranawat4480 3 ปีที่แล้ว

    You mentioned in this video that I'll create 1 more video in detailed memory mgnt. Abt heap, s1,s2, gc. I'm waiting for that.

  • @KaisarAnvar
    @KaisarAnvar 4 ปีที่แล้ว +1

    First!!! ❤️ You're amazing sir, about to learn so much from you. Are there videos of you teaching about API + Postman + Framework? My weakness is that I try to understand the intet-connection between these (and perhaps more) but hard to digest. Thanks so much!!

  • @VineetKumar-eb3lv
    @VineetKumar-eb3lv 4 ปีที่แล้ว +3

    Superb

  • @ayush_goel
    @ayush_goel 2 ปีที่แล้ว

    Thanks for the video Naveen. I would like to give this feedback that there is sometimes lot of repeated information within the video itself. For eg., in this video, you repeated metasoace functionality more than twice which, I think, was not required. Other than that, great content

  • @pradiptojha3611
    @pradiptojha3611 2 ปีที่แล้ว

    That t-shirt is epic..

  • @AshutoshSharma-qu2ph
    @AshutoshSharma-qu2ph 4 ปีที่แล้ว +1

    Awesome dude.

  • @sahilsharma-rm1dm
    @sahilsharma-rm1dm 3 ปีที่แล้ว +1

    Hi Sir, Just wanted to know the survivor 1,2 part is it required for the automation.
    I got confused after a while. I know the memory concept should be clear. But is it mandatory to go that much deep?

  • @mahalasakini5045
    @mahalasakini5045 7 หลายเดือนก่อน

    Sir please make some videos on SOLID principles

  • @amolnawale2177
    @amolnawale2177 4 ปีที่แล้ว +2

    Thanks Naveen for this wonderful topic on Java memory management. Learned Lots of new things. Do we also have any session covering the String Constant Pool within the Heap memory?

  • @sijoalexv
    @sijoalexv 3 ปีที่แล้ว +1

    Excellent!

  • @Ashlin63
    @Ashlin63 4 ปีที่แล้ว

    Hi Naveen,
    Your video is very informative.
    Can you please tell me what happens in below case?
    public static void main(String[] args){
    Custom[] getArr=getCustomArray();
    }
    public Custom[] getCustomArray(){
    int a=10;
    String b="Ashlin";
    Custom[] customArray=new Custom[100];
    custom[0]=new Custom();
    custom[1]=new Custom();
    custom[2]=new Custom();
    .
    .
    custom[99]=new Custom();
    return customArray;
    }
    As you mentioned that the stack frame for this method will be destroyed once the function exits.
    But how does it work in the case of returning the value from a function? Once the reference variable is destroyed from the stack frame does the new reference variable in the calling function point to the Custom object in heap?

  • @deepanshumehta9595
    @deepanshumehta9595 3 ปีที่แล้ว

    Hey Naveen, Thanks for these lessons...Should I cover all the 100 videos on java before starting Selenium for testing?

  • @jyosstyle1638
    @jyosstyle1638 3 ปีที่แล้ว

    Hi Naveen
    I have started learning selenium to switch from manual to Automation and I want to switch ASAP.
    I know some basic Java and covered Selenium basic concepts till now.
    Do I need to go through all these topics mentioned in Java playlist?
    Please let me know . @Naveen

  • @muthukumara8792
    @muthukumara8792 3 ปีที่แล้ว

    Sir could you please make video on jre,jdk and JVM difference?

  • @ganapathyg981
    @ganapathyg981 2 ปีที่แล้ว +1

    I love the T-shirt

  • @WendwesenGezaheng
    @WendwesenGezaheng 2 ปีที่แล้ว

    good job! Thank you

  • @ronaknaik6406
    @ronaknaik6406 3 หลายเดือนก่อน

    What is the difference between memory deallocation and destroy?

  • @hritikmandal1491
    @hritikmandal1491 3 ปีที่แล้ว

    Sir in the 1st lifo concept. Those 3 methods will stored in stack sequentially when one method will call another method sequentially but here no call of methods or any kind of dependency from one method to another method so sir lifo or filo concept is going to work when one method will call another so the called method will be executed 1st and then the caller method will be executed or we can say released the memory. Sir if I am wrong then please let me know.

  • @akashsontake1440
    @akashsontake1440 7 หลายเดือนก่อน

    Thanks naveen

  • @AnkitSachdeva-zw1wo
    @AnkitSachdeva-zw1wo 2 ปีที่แล้ว

    Was a follow-up video ever created?

  • @mycountrymeriduniya5704
    @mycountrymeriduniya5704 3 ปีที่แล้ว

    well surely you will :D .... where to get this t-shirt ?

  • @justforyou9630
    @justforyou9630 4 ปีที่แล้ว +1

    Fonts are very small. Cant able to read .

  • @RahulVerma-gh4uu
    @RahulVerma-gh4uu 4 ปีที่แล้ว +1

    Awesome :)

  • @prasadjagtap1337
    @prasadjagtap1337 4 ปีที่แล้ว

    But where actually methods will be stored, Meta sapce or Stacks and once you also call in heap, please clear my dought.

  • @mohitsingla5436
    @mohitsingla5436 4 ปีที่แล้ว +1

    Looking ripped.

  • @shivanitondak1206
    @shivanitondak1206 2 ปีที่แล้ว

    Your T-shirt is so cool🤣🤣🤣🤣🤣🤣

  • @yogeshmane7275
    @yogeshmane7275 4 ปีที่แล้ว +3

    Hello naveen

  • @daoudali4075
    @daoudali4075 3 ปีที่แล้ว +1

    thanks bro (lub u)

  • @abdullahsholapur9933
    @abdullahsholapur9933 3 ปีที่แล้ว

    Nice words on your t shirts, but developer make qa cry too by leaking too many bugs...

  • @rathanluke1683
    @rathanluke1683 3 ปีที่แล้ว +1

    love it

  • @bhaskarvardhamana836
    @bhaskarvardhamana836 2 ปีที่แล้ว

    Nice

  • @0_DaMage_0
    @0_DaMage_0 2 ปีที่แล้ว

    I need that T shirt lol.