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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2020
  • In this video, I have explained what is Stack and Heap Memory - Java Memory Management in Java.
    --Heap vs stack memory
    --Head Memory space
    --Metaspace and permanent generation
    --Eden Space
    --Survivors
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    th-cam.com/users/Naveen%20Au...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
    t.me/joinchat/COJqZUPB02r5sB7...
    Paid courses (Recorded) videos:
    naveenautomationlabs.com/reco...
    For Java & Selenium - naveenautomationlabs.com/selen...
    For API (Manual + Automation) - naveenautomationlabs.com/manua...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @shravan35
    @shravan35 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

      Glad that it helped you to learn 😊

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

      @@naveenautomationlabs Very much Sir! :-)

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

    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!

  • @askmeveera
    @askmeveera 3 ปีที่แล้ว +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

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

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

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

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

  • @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.

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

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

  • @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!!

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

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

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

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

  • @mahalasakini5045
    @mahalasakini5045 27 วันที่ผ่านมา +1

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

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

    Thanks Naveen for this wonderful topic on Java memory management

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

    Thank you for this series for continuous enhancement of our skills

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

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

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

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

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

    absolutely marvelous, Thanks Naveen

  • @gsathyanarayana7366
    @gsathyanarayana7366 2 ปีที่แล้ว +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 ....!!

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

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

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

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

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

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

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

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

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

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

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

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

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

    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.

  • @Sana-su2se
    @Sana-su2se 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 😇

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

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

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

    Just one word, simple and awesome

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

    So nice.. clear and understandable. Thankyou

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

    Awesome Naveen!!

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

    *Naveen AutomationLabs* Good content

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

    Metaspace was interesting, thanks for the detailed video.

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

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

  • @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 💗

  • @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.

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

    This is awesome 👏

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

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

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

    Thank you Naveen

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

    Naveen you are gem ❤
    Thank you .

  • @MadiraSarkar
    @MadiraSarkar 3 ปีที่แล้ว +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 🙏🏻

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

    Thank you sir it was very helpful 😊

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

    Awesome video.

  • @jatinsharma3792
    @jatinsharma3792 5 หลายเดือนก่อน +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

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

    Brilliant Naveen !!!

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

    Thank you for all your efforts

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

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

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

    superb video

  • @theabsoluteITguy
    @theabsoluteITguy 5 หลายเดือนก่อน +1

    Thanks Naveen

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

    Awesome dude.

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

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

  • @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. 🌷🌷

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

    good job! Thank you

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

    Very helpful content.

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

    Superb

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

    Thanks naveen

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

    thank you sir amazing explanation

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

    Awesome :)

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

    very good explaination sir

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

    The best!

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

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

  • @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😉

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

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

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

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

  • @niteshbhati6496
    @niteshbhati6496 10 หลายเดือนก่อน +1

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

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

    thanks bro (lub u)

  • @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?

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

    love it

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

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

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

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

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

    Very well Explained by the way nice shirt :D

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

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

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

    love the shirt ...like a bosss

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

    Thanks

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

    Excellent!

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

    Looking ripped.

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

    Nice

  • @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.

  • @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

  • @KaisarAnvar
    @KaisarAnvar 3 ปีที่แล้ว +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!!

  • @tarunsoni6971
    @tarunsoni6971 ปีที่แล้ว +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.

  • @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..

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

    I love the T-shirt

  • @amolnawale2177
    @amolnawale2177 3 ปีที่แล้ว +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?

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

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

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

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

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

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

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

      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.

  • @mahalasakini5045
    @mahalasakini5045 27 วันที่ผ่านมา

    Sir please make some videos on SOLID principles

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

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

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

    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?

  • @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.

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

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

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

    Hello naveen

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

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

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

    Fonts are very small. Cant able to read .

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

    I need that T shirt lol.

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

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

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

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

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

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

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

    Was a follow-up video ever created?

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

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