No video

Stack and Heap: Memory Management In Java (The most important Concept in Java)

  Рет қаралды 157,914

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Пікірлер: 146
@bibekkumarbazaz647
@bibekkumarbazaz647 4 жыл бұрын
The best video on memory management that I have come across. It gives a clear insight on how to write memory efficient code in Java. Will appreciate if you can make a video on streaming and how it works internally. Thanks a ton.
@GAGamingLegends
@GAGamingLegends 3 жыл бұрын
This video deserves more likes and views 🙏
@techy0716
@techy0716 2 жыл бұрын
Best illustrated concept of memory management in java
@TechWithChetann
@TechWithChetann 3 жыл бұрын
Great explanation. I read that from Java 8 onwards the permgen has been removed. And instead of permgen we have a metaspace which is part of the native memory (which is not a heap memory) which is managed by the OS.
@WeWalkAI
@WeWalkAI 4 жыл бұрын
Great video. JVM understanding is important not only for interviews but far beyond interviews.
@akado5663
@akado5663 6 жыл бұрын
Thanks a lot Naveen. That was a Video which I was looking for it but never could find. Thanks for the excellent explanation.
@nandagopal375
@nandagopal375 Жыл бұрын
Thank you provide valuable information about Java memory management 🙏🙏🙏
@ABAutomationHub
@ABAutomationHub 2 жыл бұрын
Best content on memory management..Thanks for sharing!
@naveenautomationlabs
@naveenautomationlabs 2 жыл бұрын
Thanks glad you liked it. Please refer the latest video on java memory management
@ananthasubramanian7355
@ananthasubramanian7355 3 жыл бұрын
Very good video....!! Crisp and Clear...!!! Thank you...!!
@praveenautomationinterview2367
@praveenautomationinterview2367 6 жыл бұрын
Hi Naveen, as always this is nice explanation!! Can we say that :Java Stack memory=Class (method) area+Native Method Stack+Variables memory area
@rachanabanerjee4696
@rachanabanerjee4696 5 жыл бұрын
One of the best tutors you are Naveen.
@naveenautomationlabs
@naveenautomationlabs 5 жыл бұрын
thanks for watching it @Rachana
@saranthoughts9826
@saranthoughts9826 5 ай бұрын
I am always follow your channel for java related , you rocking pls keep doing the good work. great sir!❤
@jalalzoon4447
@jalalzoon4447 6 жыл бұрын
Sir you have clear all concepts regarding java memory management. Thanks for your such great efforts in making video.
@niloybasu6508
@niloybasu6508 3 жыл бұрын
Awesome explanation!!! Terrific!! Thanks a lot!!!
@user-lv4up4io6y
@user-lv4up4io6y 6 ай бұрын
Great knowledge you having sir. Thanks for this .
@prabhatpatnaik205
@prabhatpatnaik205 4 жыл бұрын
really it is very nice video, after read this, I clear my concept on memory heap and stack. thank you navin.
@avishsharma3404
@avishsharma3404 3 жыл бұрын
Great Explanation , this is something that I found deepen understanding of memory management. Thanks Naveen
@meditationandrelaxationmus741
@meditationandrelaxationmus741 5 жыл бұрын
never found so detailed.... thanks a ton!
@asimghosh5737
@asimghosh5737 3 жыл бұрын
Very nice👍👍👍 it's really helpful.
@parikshitraghav7543
@parikshitraghav7543 4 жыл бұрын
I Like your efforts Naveen, Very very useful video for interview (I was asked these questions in mine!).
@saikiran2356
@saikiran2356 2 жыл бұрын
Kutha chimpi para dhengaw anna.... Mid nyt kuda chaala interesting ga chusaa
@yashasvirallabandi9070
@yashasvirallabandi9070 Жыл бұрын
Great explanation. Thank you!
@shipraparihar6963
@shipraparihar6963 5 жыл бұрын
Thanks Naveen for this amazing video. It is full of information and explained very clearly.
@MrSpraveennaika
@MrSpraveennaika 2 жыл бұрын
My first nice video on Memory Management 👌👌
@jaserq
@jaserq 4 жыл бұрын
Just thank you.. i relieved finally.. i ve been seaching this for years !!!
@jeetupadhyaya2687
@jeetupadhyaya2687 3 жыл бұрын
Thankyou for this video Naveen!
@SeadoooRider
@SeadoooRider 4 жыл бұрын
I really appreciate your effort Naveen. Thanks for video :)
@madhulikaghosh3876
@madhulikaghosh3876 5 жыл бұрын
Thankyou Naveen. This was so informational
@_________________404
@_________________404 4 жыл бұрын
Thanks, very interesting video. I just wanted to see what is the diference between local and static variable storage but I've learned much more.
@ramyapalani6760
@ramyapalani6760 5 жыл бұрын
Hats off sir..very good explanation.. Pls continue this topic to cover garbage collection..
@Priya1_123
@Priya1_123 3 жыл бұрын
Great and deep explanation and information in detail . Better than all other videos from other youtube channels.. Just a small suggestion, if the diagram is ready then this video can be covered in bit less time.Awesome video. Thanks a ton
@dilipp007
@dilipp007 6 жыл бұрын
One of the survivor memories will always be free..
@amanokuba4688
@amanokuba4688 4 жыл бұрын
Nice explanation, thank you...As for the back ground noise, you could add a faint background music to cancel and soften the high pitch noise....
@bollywoodtrailers7913
@bollywoodtrailers7913 4 жыл бұрын
It was really a very explanatory session. Got all the concept by this vesio
@nishant2242
@nishant2242 2 жыл бұрын
Great explanation
@sureshgply
@sureshgply 6 жыл бұрын
Very good explanation for Memory management. Thanks Naveen
@mallikarjun-shurpali9698
@mallikarjun-shurpali9698 Жыл бұрын
Nice explanation sir..
@zajuzam
@zajuzam 2 жыл бұрын
Nice Explanation
@AshutoshSingh-uc6nk
@AshutoshSingh-uc6nk 3 жыл бұрын
Thankyou sir for this 🔥🔥🔥 explanation
@nalithamsaisudha
@nalithamsaisudha 2 жыл бұрын
great explanation 👏
@abhijeets6593
@abhijeets6593 4 жыл бұрын
Naveen, i want to add one point, permanent Generation is part of heap memory not stack memory as you said in video(28:03)
@sreevanireddy1325
@sreevanireddy1325 4 жыл бұрын
Every Nice explanation sir, it's very clear to understand. Thank you sir.
@narainsankar
@narainsankar 3 жыл бұрын
Great explanation..
@parwana1000
@parwana1000 3 жыл бұрын
Bow down to u ...TY so much
@aritrabhattacharya7722
@aritrabhattacharya7722 2 жыл бұрын
This was really helpful. Thanks a lot.
@sourabhhsethii7292
@sourabhhsethii7292 3 жыл бұрын
Thanks for sharing this knowledge!
@ahmadreza7508
@ahmadreza7508 3 жыл бұрын
Thank you so much for creating such a helpful video
@GauravSingh-ov9mh
@GauravSingh-ov9mh 6 жыл бұрын
Great video. Just had a couple of query : 1. You said permgen is part of stack memory but you displayed them on separate boxes so that was confusing. 2. You said stack size is very less compared to heap memory. but than what about Permgen (or now Metaspace) . Is metaspace is less compared to heap? Thanks!
@vijayragavendran5606
@vijayragavendran5606 5 жыл бұрын
This is perfect! Great job man ! Thanks a lot!
@khajazakiuddin931
@khajazakiuddin931 5 жыл бұрын
u really make it simple naveen... 😊...i still like ur amazing diagrammatic representation of concepts which make things really easy to understand...kudos bro... keep going...👏🙂
@ayyapareddykandula8481
@ayyapareddykandula8481 5 жыл бұрын
Excellent sir, thanks for the video
@JaikratSinghTariyal
@JaikratSinghTariyal 6 жыл бұрын
Very good explanation. But this video is up to Java 7. Java 8 on wards, we dont have pergem concept at all. Its Metaspace now.
@MrVinnap
@MrVinnap 6 жыл бұрын
Jaikrat Singh Tariyal yes ... I was about to ask this questions. Now pergen is removed completely...
@AhmedKhaled-he9mf
@AhmedKhaled-he9mf 2 жыл бұрын
very very nice explain I become subscriber because this video
@vireshnavalli1359
@vireshnavalli1359 5 жыл бұрын
Good explanation
@prapasup
@prapasup 5 жыл бұрын
Thanks much for sharing the information.
@nikhilgupta6564
@nikhilgupta6564 6 жыл бұрын
Very well explained .. Concise and clear .. Pls keep uploading more videos on JAVA
@kamnijaiswal8060
@kamnijaiswal8060 4 жыл бұрын
Permanent Generation is also part of Heap memory.
@namangoyal5578
@namangoyal5578 4 жыл бұрын
Great Work, I searched so many videos but this is my final stop !! Appreciate the efforts you did to make this :) One doubt : Is permanent generation the part of Stack Memory ???
@chigullapallysaiprasad6395
@chigullapallysaiprasad6395 6 жыл бұрын
Naveen ji extraordinary teaching thanks a lot for sharing your great knowledge please help in sql concepts as well.
@user-yq4gb5vu6f
@user-yq4gb5vu6f 6 ай бұрын
how you differing method block and method area of Permanent generation.
@arvindmv7166
@arvindmv7166 3 жыл бұрын
Very informative, but I was looking for information regarding MetaSpace.
@gyaraganesh7020
@gyaraganesh7020 5 жыл бұрын
sir , your explanation is very nice and make more videos thanking you very much sir
@saraswathib9889
@saraswathib9889 5 жыл бұрын
Small correction in your lesson When the survivor space S0 is filled, it automatically goes to Old Generation after the minor GC. It will not go to S1.
@arijitbasu4397
@arijitbasu4397 3 жыл бұрын
Such a quality content ❤️
@kunalsinha5942
@kunalsinha5942 3 жыл бұрын
Thanks Naveen for such a informative video. I have a follow up question below:- If we create any Collection I.e Arraylist , Hashmap etc .. where is it created .. in Heap or Stack?Since collections stores the the object references rather than physical objects..How does it manage the whole process?
@supriyakumari8552
@supriyakumari8552 3 жыл бұрын
great information, fine details. :)
@shashankjakhmola6226
@shashankjakhmola6226 2 жыл бұрын
If Test t = new Test() is defined as instance variable rather then defined inside some method like m1 method. In that case I understood that new test() will be creating one object inside the heap. But where the reference will be stored as it is not local variable it is instance variable ? And stack will store local variable and local references as much as i know?
@pragadees24
@pragadees24 6 жыл бұрын
Very Good One:) got some more Idea about JRE.
@achillesheel7314
@achillesheel7314 6 жыл бұрын
Excellent! Thank you so much.
@princekumar764
@princekumar764 6 жыл бұрын
one word....AWESOME
@sanjanapanwar3844
@sanjanapanwar3844 6 ай бұрын
method area is inside the permanent generation, so can we say that now method area is inside the metaspace
@tianhaozhao6774
@tianhaozhao6774 2 жыл бұрын
Permanent Generation is replaced by Metaspace in jdk8. What's the difference
@swapnilgupta6028
@swapnilgupta6028 5 жыл бұрын
Thank you so much Naveen but one Question, Cam you tell from which book you took reference ?
@faisalsakib9810
@faisalsakib9810 5 жыл бұрын
Thanks for such nice videos....can you please tell me after execution of a method... where the result is stored.???
@dupindersingh1599
@dupindersingh1599 3 жыл бұрын
Question 1: At the time of Major GC, will the JRE do only Major GC ? or JRE will perform its normal tasks and in parallel Major GC will perform Question 2: When you said we don't have to do the Major GC frequently, is there any code we write explicitly for GC? I think JRE itself take care of the Garbage collection.
@ayushjain7555
@ayushjain7555 Жыл бұрын
Thank you.
@sancharidas7532
@sancharidas7532 2 жыл бұрын
What are JRE classes? The predefined classes or the ones which I have made ?? Someone help me understand please.
@nikhilkhatri1417
@nikhilkhatri1417 4 жыл бұрын
Very informative and nicely presented. Just the keyboard noise is lill irretating. Please upload any video on Class loading with context of JRE.
@ramprasath4788
@ramprasath4788 4 жыл бұрын
Clearly explained ....
@shashankjakhmola6226
@shashankjakhmola6226 2 жыл бұрын
Memory leak will come on only in heap area right? If yes then in that case what we need to do in that case?
@ShubhamGupta-du6ie
@ShubhamGupta-du6ie 2 жыл бұрын
Hi Naveen, How to perform GC for a particular object
@shankardayal6928
@shankardayal6928 3 жыл бұрын
PermGen was part of Heap upto java 8. From java 8, it had been removed.
@kshitij618
@kshitij618 2 жыл бұрын
awesome man
@RajanGupta-jf5mn
@RajanGupta-jf5mn 4 жыл бұрын
Nice Naveen, very informative. :) by any chance any plans for a video explaining the metaspace concept also?
@gyanranjan942
@gyanranjan942 4 жыл бұрын
Hi Naveen, Thanks for the explanatory video. It's really helpful. Just a small doubt, somewhere I read that SCP will get memory inside method area, you told it would get memory inside Heap... If you can explain more about SCP it would be helpful. Thanks again ☺️🙏
@shashankjakhmola6226
@shashankjakhmola6226 2 жыл бұрын
As much as i have a knowledge till now permanent generation is separate memory are and stack is separate memory area . But in this video somewhere at the end you are saying parmanent memory is part of stack memory which is making me confused can you please explain on that ? Is both separate memory area or parmanent is part of stack. ?
@rafiq41cb
@rafiq41cb 2 жыл бұрын
If m1 calls m2, method block will be available to which method?
@apoorvdixit2856
@apoorvdixit2856 4 жыл бұрын
sir can we say that each class have only one object and rest are created by referenced to that object.
@sagars3332
@sagars3332 3 жыл бұрын
Hi sir I have one doubt,let say if older generations is also filled with objects and there is not enough space then if GC destroy that object wouldn't it impcact the application as the object is no longer available...sir I am starter guy pardon me if I sound stupid..
@mugeeshhk
@mugeeshhk 3 жыл бұрын
As per my understanding, 1. So at a time, one of the survivor space is always empty ? this correct ? 2. Objects that are survived after many cycles of GC, are moved to the Old generation memory space ?
@nutandas7828
@nutandas7828 3 жыл бұрын
PermGen is replaced with metaspace after java 8 with better memory management and growable feature.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Yes it got covered and updated ib this video: kzfaq.info/get/bejne/at97q62bvr6-YHU.html
@dProfessor_
@dProfessor_ Жыл бұрын
Thanks Sir
@SureshKumar-ul5ev
@SureshKumar-ul5ev 5 жыл бұрын
Custom immutable store into which part of memory?
@nathansmalley8433
@nathansmalley8433 3 жыл бұрын
Ty. Good explanation
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Glad it was helpful!
@ramprasath5054
@ramprasath5054 5 жыл бұрын
Very good
@ArjunArjun-bi2df
@ArjunArjun-bi2df 6 жыл бұрын
hi naveen nice video...its very help full to understand the memory concept....... is there any hidden memory concept in java
@anjaliaggarwal3884
@anjaliaggarwal3884 2 жыл бұрын
What is created first a class or a stack
@mhdsibu2533
@mhdsibu2533 6 жыл бұрын
Its really helpfull..thank you
@ThishK
@ThishK 6 жыл бұрын
Great one!! One question to you Naveen. Do you know how to perform test for the product (Web based Game) where DOM element is hidden. I think all the DOM element is under the CANVAS?
@stabgan
@stabgan 5 жыл бұрын
Thanks boss
SingletonDesign Pattern In Java || How to achieve Singleton In Selenium WebDriver
36:33
Stack vs Heap Memory - Java Memory Management (Pointers and dynamic memory)
30:55
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 40 МЛН
When you discover a family secret
00:59
im_siowei
Рет қаралды 17 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
Garbage collection in Java, with Animation and discussion of G1 GC
44:20
Ranjith ramachandran
Рет қаралды 487 М.
9. Java Memory Management and Garbage Collection in Depth
48:48
Concept && Coding - by Shrayansh
Рет қаралды 70 М.
Java's G1 Garbage Collector
25:55
Java
Рет қаралды 14 М.
#26 Stack And Heap in Java
12:37
Telusko
Рет қаралды 234 М.
Some cool facts about Null in Java || Important to know
17:33
Naveen AutomationLabs
Рет қаралды 17 М.
Choose the best Garbage Collector in Java
12:33
Defog Tech
Рет қаралды 64 М.