No video

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

  Рет қаралды 99,342

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

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:
www.youtube.co...
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/...
Paid courses (Recorded) videos:
naveenautomati...
For Java & Selenium - naveenautomatio...
For API (Manual + Automation) - naveenautomatio...

Пікірлер: 126
@shravan35
@shravan35 3 жыл бұрын
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 жыл бұрын
Glad that it helped you to learn 😊
@shravan35
@shravan35 3 жыл бұрын
@@naveenautomationlabs Very much Sir! :-)
@takeshiasahi5494
@takeshiasahi5494 2 жыл бұрын
You said it was tough, then taught me like I was 5. Great video. Thanks a lot sir.
@Mayank-ff9mq
@Mayank-ff9mq 8 ай бұрын
One of the best lectures i have seen till date on Java Memory Allocation !!!
@Sana-su2se
@Sana-su2se 3 жыл бұрын
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 😇
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
So nice of you
@baan1221
@baan1221 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!!
@askmeveera
@askmeveera 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
@vikramreddy7586
@vikramreddy7586 3 жыл бұрын
This video is GOLD!! Real life Jeetu Bhaiya!!
@afifahmed1183
@afifahmed1183 3 жыл бұрын
Thank you very much. :) Selenium is a hot cake in USA currently. And i am learning from your youtube videos.
@mahalasakini5045
@mahalasakini5045 2 ай бұрын
Thanks a lot, this is really very interesting session and got to know the memory management in java
@moviebuff3030
@moviebuff3030 3 жыл бұрын
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. 🌷🌷
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Haha thanks brother
@moviebuff3030
@moviebuff3030 3 жыл бұрын
@@naveenautomationlabs 😊😊
@soodharshal
@soodharshal Жыл бұрын
Thanks Naveen for this wonderful topic on Java memory management
@shankumondal2881
@shankumondal2881 3 жыл бұрын
A very complex topic has been clarified in a simple way. Loved ❤️ it
@jatinsharma3792
@jatinsharma3792 2 жыл бұрын
It is beautiful to understand insides about Tech.
@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.
@jatinsharma3792
@jatinsharma3792 6 ай бұрын
If the Live classe with the Cap I guess people love to focus more in the lectures, btw you look good with cap. :D
@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!
@TheRoyal0001
@TheRoyal0001 3 жыл бұрын
very well explained in detail and in simple way Naveen! Thanks.
@justreason5868
@justreason5868 Жыл бұрын
Thank you very much for this detailed explanation. I'd recommend this.
@waheedabbas3915
@waheedabbas3915 2 жыл бұрын
Just one word, simple and awesome
@jatinsharma3792
@jatinsharma3792 2 жыл бұрын
Love your gyan.!! Impresive Thanks for mathematical expression.
@SarangHoley
@SarangHoley 3 жыл бұрын
Long awaited topic & thanks for covering it on white board 👍😊
@bongtube1983
@bongtube1983 3 ай бұрын
Thank you for explaining it in so easy way. kudos!
@anannya9909
@anannya9909 3 жыл бұрын
you are the best teacher I have seen till date! THANK YOU SO MUCH for knowledge sharing. God bless you.
@manupriyar8169
@manupriyar8169 2 ай бұрын
So nice.. clear and understandable. Thankyou
@autogarage8559
@autogarage8559 3 жыл бұрын
*Naveen AutomationLabs* Good content
@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 💗
@87harshmehta
@87harshmehta 2 жыл бұрын
I paused the video. Ordered the same T-shirt and continued 😄 Very informative video. Appreciated all your efforts towards the community 🙏
@vasavip1628
@vasavip1628 3 жыл бұрын
Awesome Naveen!!
@gsathyanarayana7366
@gsathyanarayana7366 2 жыл бұрын
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 ....!!
@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.
@santhoshiyada1675
@santhoshiyada1675 3 жыл бұрын
It's the best video on memory management sir!!! Such a clear and wonderful explanation...
@tejaswiniurs5870
@tejaswiniurs5870 3 жыл бұрын
Nice explanation :) I liked the words on your T-shirt "I make Developers Cry" haha ;)
@ABAutomationHub
@ABAutomationHub 2 жыл бұрын
Very nicely explained.. Thanks for covering these complex topics in so much detail.
@naveenautomationlabs
@naveenautomationlabs 2 жыл бұрын
Glad that you liked it 🙂
@hussainshaik4752
@hussainshaik4752 3 жыл бұрын
@Naveen, Your explanation was superb..... you made it very simple....
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Thank you so much 🙂
@indranilpalit5799
@indranilpalit5799 2 жыл бұрын
Hey naveen, I really liked your shirt, we as a QA really make devs cry
@theabsoluteITguy
@theabsoluteITguy 6 ай бұрын
Thanks Naveen
@sreenathmm813
@sreenathmm813 2 жыл бұрын
Brilliant Naveen !!!
@vibhagupta2618
@vibhagupta2618 3 жыл бұрын
superb video
@intellectualnews9828
@intellectualnews9828 3 жыл бұрын
Tq I was finding that is exactly but I couldn't able. Thank you sir
@thelostguy1212
@thelostguy1212 3 жыл бұрын
Very proud should be you
@gowthamsankaran67
@gowthamsankaran67 9 ай бұрын
Thank you so much for the video. Please do more in-depth videos like this.
@niteshbhati6496
@niteshbhati6496 11 ай бұрын
good explanation....keep up the good work🙂
@MDHOSSAIN-gj5ve
@MDHOSSAIN-gj5ve 3 жыл бұрын
Awesome video.
@fayazbaig2490
@fayazbaig2490 3 жыл бұрын
Thank you for this series for continuous enhancement of our skills
@ramji_19
@ramji_19 3 жыл бұрын
Really worth the time spent in listening to this video. Great work.
@MadiraSarkar
@MadiraSarkar 3 жыл бұрын
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 🙏🏻
@indra-jx2zh
@indra-jx2zh 3 жыл бұрын
Thank you Naveen
@user-qg1qg2vi4c
@user-qg1qg2vi4c 2 жыл бұрын
Excellent video, thank you so much for your help understanding the basics!
@VineetKumar-eb3lv
@VineetKumar-eb3lv 3 жыл бұрын
Superb
@Islamicvideoreaction880
@Islamicvideoreaction880 2 жыл бұрын
Please keep it up like this ways to make easy to understand 🙂🙏🙏
@dhirajpawar6429
@dhirajpawar6429 Жыл бұрын
Excellent video, thank you so much for your help understanding the basics!, Your doing well Job 💯
@sourabhyadav596
@sourabhyadav596 3 жыл бұрын
Very helpful content.
@dineshdkumar1771
@dineshdkumar1771 3 жыл бұрын
absolutely marvelous, Thanks Naveen
@jinitescapematrix
@jinitescapematrix 2 жыл бұрын
very good explaination sir
@archanakhandagle2768
@archanakhandagle2768 3 жыл бұрын
Thank you sir it was very helpful 😊
@almajabin7898
@almajabin7898 3 жыл бұрын
I just loved the topic the way you covered. Thanks a ton!
@shobhit9826
@shobhit9826 3 жыл бұрын
This is awesome 👏
@ganapathyg981
@ganapathyg981 2 жыл бұрын
I love the T-shirt
@soopastylin1932
@soopastylin1932 3 жыл бұрын
love the shirt ...like a bosss
@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😉
@gunjankapoor9163
@gunjankapoor9163 3 жыл бұрын
Metaspace was interesting, thanks for the detailed video.
@vinith2320
@vinith2320 3 жыл бұрын
Naveen you are gem ❤ Thank you .
@sibtainsyed1103
@sibtainsyed1103 3 жыл бұрын
Very well Explained by the way nice shirt :D
@shivanitondak1206
@shivanitondak1206 Жыл бұрын
Thank you for all your efforts
@akashsontake1440
@akashsontake1440 3 ай бұрын
Thanks naveen
@pradiptojha3611
@pradiptojha3611 2 жыл бұрын
That t-shirt is epic..
@prikshitverma3885
@prikshitverma3885 3 жыл бұрын
Are sir nice video!!! and Nice tee..!!!
@KaisarAnvar
@KaisarAnvar 3 жыл бұрын
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!!
@KaisarAnvar
@KaisarAnvar 3 жыл бұрын
inter*
@Driverforcash
@Driverforcash Жыл бұрын
Naveen Sir - Great Explanation of Stack, Heap and MetaSpace. The final comparison between Stack Vs Heap was quick and easy to grasp.
@AshutoshSharma-qu2ph
@AshutoshSharma-qu2ph 3 жыл бұрын
Awesome dude.
@gauravsalagare8120
@gauravsalagare8120 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 жыл бұрын
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.
@WendwesenGezaheng
@WendwesenGezaheng Жыл бұрын
good job! Thank you
@idohadad8882
@idohadad8882 2 жыл бұрын
The best!
@sijoalexv
@sijoalexv 3 жыл бұрын
Excellent!
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Thank you! Cheers!
@saxena3718
@saxena3718 2 жыл бұрын
I think this should be sufficient for any interview questions on JVM
@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
@mohitsingla5436
@mohitsingla5436 3 жыл бұрын
Looking ripped.
@Ashokkumar-wj5mw
@Ashokkumar-wj5mw 3 жыл бұрын
Hi Naveen, Can you please make a video on Spring cloud contract testing
@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.
@tarunsoni6971
@tarunsoni6971 Жыл бұрын
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.
@supun_sandaruwan
@supun_sandaruwan 2 жыл бұрын
thank you sir amazing explanation
@mahalasakini5045
@mahalasakini5045 2 ай бұрын
Sir please make some videos on SOLID principles
@justforyou9630
@justforyou9630 3 жыл бұрын
Fonts are very small. Cant able to read .
@yogeshmane7275
@yogeshmane7275 3 жыл бұрын
Hello naveen
@bhaskarvardhamana836
@bhaskarvardhamana836 Жыл бұрын
Nice
@advaitatt7784
@advaitatt7784 2 жыл бұрын
Thanks
@RahulVerma-gh4uu
@RahulVerma-gh4uu 3 жыл бұрын
Awesome :)
@amolnawale2177
@amolnawale2177 3 жыл бұрын
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?
@0_DaMage_0
@0_DaMage_0 2 жыл бұрын
I need that T shirt lol.
@daoudali4075
@daoudali4075 3 жыл бұрын
thanks bro (lub u)
@shivanitondak1206
@shivanitondak1206 Жыл бұрын
Your T-shirt is so cool🤣🤣🤣🤣🤣🤣
@rathanluke1683
@rathanluke1683 3 жыл бұрын
love it
@sahilsharma-rm1dm
@sahilsharma-rm1dm 3 жыл бұрын
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?
@sathvik460
@sathvik460 2 жыл бұрын
I make Developers CRY. ha ha ha..
@AnkitSachdeva-zw1wo
@AnkitSachdeva-zw1wo Жыл бұрын
Was a follow-up video ever created?
@deepanshumehta9595
@deepanshumehta9595 3 жыл бұрын
Hey Naveen, Thanks for these lessons...Should I cover all the 100 videos on java before starting Selenium for testing?
@deepanshumehta9595
@deepanshumehta9595 3 жыл бұрын
Waiting for your reply...
@muthukumara8792
@muthukumara8792 2 жыл бұрын
Sir could you please make video on jre,jdk and JVM difference?
@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
@mycountrymeriduniya5704
@mycountrymeriduniya5704 3 жыл бұрын
well surely you will :D .... where to get this t-shirt ?
@abdullahsholapur9933
@abdullahsholapur9933 2 жыл бұрын
Nice words on your t shirts, but developer make qa cry too by leaking too many bugs...
@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.
@almajabin7898
@almajabin7898 3 жыл бұрын
following
@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?
9. Java Memory Management and Garbage Collection in Depth
48:48
Concept && Coding - by Shrayansh
Рет қаралды 68 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 30 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 69 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 58 МЛН
Core Test Automation Framework Strategy for Web/API/Mobile Applications
36:43
Naveen AutomationLabs
Рет қаралды 142 М.
Wrapper Classes In Java - Core Java - Part -11
12:15
Naveen AutomationLabs
Рет қаралды 100 М.
Stack Memory and StackOverFlowError in Java - Interview Question
23:30
Naveen AutomationLabs
Рет қаралды 13 М.
Difference between Interface and Absract Class
30:52
Naveen AutomationLabs
Рет қаралды 180 М.
#26 Stack And Heap in Java
12:37
Telusko
Рет қаралды 231 М.
Java Stack + Heap with Reference & Instance Variables
23:58
Job Ready Programmer
Рет қаралды 224 М.
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 205 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 30 МЛН