P56 - Memory Management in Java | Core Java | Java Programming |
In this video, we dive into the fascinating world of runtime data areas in the JVM (Java Virtual Machine) and gain a comprehensive understanding of how Java manages memory during program execution.
Understanding the runtime data areas is crucial for Java developers who want to optimize memory usage, improve performance, and prevent common memory-related issues in their applications.
We start by exploring the Heap, the memory region where objects are allocated and managed.
Moving on, we dive into the Stack, which plays a vital role in method invocations and variable scoping. We uncover the purpose of method frames and how the stack manages local variables, reference variables.
Next, we uncover the Method Area, a critical part of the JVM's memory management. We explain how the method area stores class-level data, including bytecode instructions, constant pools, field and method information, and static variables.
By the end of this video, you'll have a clear understanding of how runtime data areas in the JVM function and how they contribute to the overall memory management process in Java applications.
If you're a Java developer looking to gain insights into memory management and optimize your code's performance, this video is a must-watch.
Don't miss out on this opportunity to enhance your understanding of runtime data areas in the JVM. Watch now and take your Java programming skills to the next level!
Points covered in this video:
❇️ What is memory management?
❇️ Understand the different memory areas
❇️ What is the default size of the heap memory in JVM
❇️ What is the default size of the stack memory in JVM
❇️ How to increase or decrease the size of the heap memory in JVM
❇️ How to increase or decrease the size of the stack memory in JVM
❇️ Changes to runtime data areas after java8
🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶
▶ Next Video link: • P57 - Anonymous object...
◀ Previous Video Link: • P55 - JDK, JRE and JVM...
↔ Core Java in Telugu Playlist link: bit.ly/3KMlbBk
✴ Checkout my other playlists: bit.ly/3gLIAVL
☕ Buy me a coffee: bit.ly/33ljBWc
===================================
===================================
Connect me @
🔗 Website - www.hyrtutoria...
🔗 Telegram - t.me/hyrtutorials
🔗 Facebook - / hyrtutorials
🔗 LinkedIn - / hyrtutorials
🔗 Twitter - / hyrtutorials
🔗 Instagram - / hyrtutorials
===================================
===================================
🙏 Please Subscribe🔔 to start learning for FREE now, also help your friends in learning the best by suggesting this channel.
#hyrtutorialstelugu #selenium #java #telugu
Java programming by Yadagiri Reddy
Пікірлер: 242
↔ Core Java in Telugu Playlist link: bit.ly/3KMlbBk ✴ Checkout my other playlists: bit.ly/3gLIAVL ☕ Buy me a coffee: bit.ly/33ljBWc
@user-jh7qb2dc7v
Ай бұрын
Anna. Complete java notes పెట్టండి anna
@user-jh7qb2dc7v
Ай бұрын
Me class bagundi alage notes kuda pettandi anna
sir your teaching is excellent sir the way your teaching the topic is goes into the rom in my brain
@HYRTutorialsTelugu
Ай бұрын
Thanks buddy 🙂
The amount of energy you are putting into these videos are just unimaginable. Despite the exhaustion by the end of the video, you still have energy to recap everything. What a great dedicated teacher you are, salute sir. Thank you very much as always. PS. Looking forward to Multithreading class
@HYRTutorialsTelugu
Жыл бұрын
Thanks for understanding buddy.
anna meeru total syllabus please complete cheyyandi anna bcoz yotube lo chala java classes unna kuda naku mee explanation ki matramey ardhamaitundi🙏🙏🙏🙏
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
@urukunduyadav6304
Жыл бұрын
@@HYRTutorialsTelugu 56 class last of corejava
@Mdd181
Жыл бұрын
@@urukunduyadav6304Inka eni class lu unayi testing ki core Java enta varaku kavaliii
@HYRTutorialsTelugu
Жыл бұрын
@@Mdd181 testing ki corejava complete ga raavali buddy. Konthamandi corejava antha avasaram ledu ani cheptharu but only with full corejava knowledge you can write good automation code and frameworks
@Mdd181
Жыл бұрын
@@HYRTutorialsTelugu mee 56 videos lu chusi nerchukuntee core Java vachinatenaaa
00:03 Memory management in Java involves understanding different types of memories 22:44 Memory Management in Java involves managing memory areas like stack, permanent generation, and metaspace. 34:35 Memory Management in Java 41:27 Memory management in Java involves handling objects and reference variables. 53:50 Memory management in Java covers referencing and static variables. 1:02:49 Understanding memory management in Java 1:12:53 Memory Management in Java involves setting VM arguments and handling out of memory errors 1:24:25 Memory management is an important topic in Java programming. Crafted by Merlin AI.00:03 Memory management in Java involves understanding different types of memories 22:44 Memory Management in Java involves managing memory areas like stack, permanent generation, and metaspace. 34:35 Memory Management in Java 41:27 Memory management in Java involves handling objects and reference variables. 53:50 Memory management in Java covers referencing and static variables. 1:02:49 Understanding memory management in Java 1:12:53 Memory Management in Java involves setting VM arguments and handling out of memory errors 1:24:25 Memory management is an important topic in Java programming.
@HYRTutorialsTelugu
4 ай бұрын
🙏
Un beatable classes for Java i am impressed YOU GREAT what a subject thank you from the bottom of the heart
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 😊
No words to explain your teaching sir
I AM AN EEE STUDENT AND I WAS PREPARING FOR GATE BEFORE, THE WAY THAT U ARE EXPLAINING CONCEPTS IS SIMPLY SUPERB SIR. I FEEL LIKE SITTING IN GATE CLASSES WHERE THEY EXPLAIN EVERY THING VERY CLEARLY. THANK U SIRR
@HYRTutorialsTelugu
4 ай бұрын
Thanks buddy 🙂
Very nice anna epudu naku java memory allocation lo kinni doutes vundevi mi video chusaka na douts anni koda clear ayaye thanks for sharing information anna
@HYRTutorialsTelugu
Жыл бұрын
Happy Learning buddy 🙂
valuable info for non-IT people. I request you(sir) to spend some time on spring also in order to learn one frame work.
@HYRTutorialsTelugu
Жыл бұрын
No plan buddy 😔
అన్నయ్య మీరు JAVASCRIPT గురించి కూడ COMPLETE videos చేయండి ఎందుకంటె ప్రస్తుతం javascript is most widely used scripting language for develop FRONT END developer ❤️
@HYRTutorialsTelugu
9 ай бұрын
Yeah sure buddy
Legend is back 🔥
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
Thank you sir for uploading videos plzzz complete as fast as possible or plzzz what could be the last video in core java your classes are really helping us to build from scratch
@HYRTutorialsTelugu
Жыл бұрын
Most of the topics are completed buddy. Whatever I post next is an extra things only
anna oka question java loo strings anni Heap Memory loo unna String Pool lo store avutai kada (data) and all static variables anni MetaSpace loo store avutaiii so ippudu manam oka static string variable create cehastay adii String Pool lo save avutundaa like a normal variable or static variable kabatti MetaSppace loo store avutundaa...?
@HYRTutorialsTelugu
11 ай бұрын
Metaspace buddy
This is top level information, thank you so much :)
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 😊
Nice explanation and point to point very clear explanation thank you so much anna
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
Anna, if you don't mind can you please make live video bcz some of members want to clarify our doubts regarding jobs and how to get better programmer and all that stuff we want know. We want to listen from you bcz you are giving the best guidance about subject so mainly i want to talk with you in live. Whenever you are free Could you please make live video bro ......plzzzz 🙏🙏.....
@HYRTutorialsTelugu
9 ай бұрын
Chustha buddy
@HYRTutorialsTelugu
9 ай бұрын
Meanwhile send me all your questions on hyadagirireddytutorials@gmail.com
Take a bow sir, wonderful teaching
@HYRTutorialsTelugu
Ай бұрын
Thanks buddy 🙂
Hlo sir I am very big fan of your teaching sir please upload total concept s of java sir please
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
Everything is awesome but typically RAM has more memory than ROM. Because RAM is used to provide memory for processing the applications while ROM is used to boot the system and it need MB space. I think u misunderstood difference between disk and ROM
@HYRTutorialsTelugu
11 ай бұрын
That's wrong buddy. If you check any system configuration, ram is lesser than ROM. ROM is used for storing the data which means we need more space . But RAM is used for loading the data or applications and that's why it is smaller. ROM is nothing but your hard disk.
Thank you sir for your patience and knowledge sharing.
@HYRTutorialsTelugu
Жыл бұрын
Happy learning buddy 😊
Well done sir....thanks for your time
@HYRTutorialsTelugu
Ай бұрын
Happy Learning buddy 🙂
chala depth ga cheptunaru Annay
@HYRTutorialsTelugu
9 ай бұрын
Yeah full knowledge gain cheyyochu buddy
Buddy superb deep explanation Java create chesinodu kuda present entha clear ga cheppaledemo
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
Reddy Sir, My doubt is... In Method Area you are teaching only static data of class will store and what about non static methods you told that non static methods are stored in Heap Area but in chatGpt but they are storing in Method area only while method is invoking with object instance then with the information of class , JVM will directly look into Method Area and find out the particular method and calling it. No address of method or name of method are storing in heap area I am facing confusion with this..
vere level mowa nuvvu ....tq soo muchh....
@HYRTutorialsTelugu
9 ай бұрын
Thanks buddy 🙂
add the multithreading videos sir, can't wait for them
@HYRTutorialsTelugu
Жыл бұрын
Sure buddy
Thank you for the lucid explanation sir💜
@HYRTutorialsTelugu
8 ай бұрын
Happy Learning buddy 🙂
Nice to see you again sir 😊
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
Perfect teacher for java
@HYRTutorialsTelugu
Ай бұрын
Thanks buddy 🙂
Thanks for your efforts bro..
@HYRTutorialsTelugu
Жыл бұрын
Happy learning buddy 😊
Thanks for the valuable information anna😊. Please advanced Java kuda videos cheyyandi anna..
@HYRTutorialsTelugu
Ай бұрын
Happy Learning buddy 🙂
Clear explanation, please make vedio on solid principal n design patterns
@HYRTutorialsTelugu
8 ай бұрын
Sure buddy
Thankyou sir
@HYRTutorialsTelugu
17 күн бұрын
Happy learning buddy 😊
Got full clarity on the topic . Thank you :)
@HYRTutorialsTelugu
Ай бұрын
Happy Learning buddy 🙂
Great content, flow, and presentation. Even though, I was unable to follow the explanation, except few common words like kooda... due to the language barrier but wasn't a hindrance to grasp the concept.
@HYRTutorialsTelugu
8 ай бұрын
Thanks buddy 🙂 This was created in telugu language unfortunately
@shivakumarm6994
8 ай бұрын
@@HYRTutorialsTelugu I am fortunate to learn two languages Simultaneously - Java and Telugu.
@HYRTutorialsTelugu
8 ай бұрын
One helps you professionally and another helps you personally @@shivakumarm6994
Concept of the day ❤️
@HYRTutorialsTelugu
Жыл бұрын
Happy Learning buddy 🙂
Love you from bangalore ❤❤
Maybe it is a lot to ask , Kindly do springboot and microservices. It would help many of them.
@HYRTutorialsTelugu
9 ай бұрын
Ippatlo no plan buddy
Thank you sir
@HYRTutorialsTelugu
9 ай бұрын
Happy learning buddy 😊
Nice explanation
@HYRTutorialsTelugu
9 ай бұрын
Thanks buddy 🙂
Hi sir Thanks for course It was very helpful
@HYRTutorialsTelugu
Жыл бұрын
Happy Learning buddy 🙂
return key word use enti bro,advantage and disadvantages?? koncham clear ga cheppandi....
@HYRTutorialsTelugu
Жыл бұрын
Return gurinchi methods topic lone discuss chesam kada buddy. Return is used for returning any value from the method
Thank you for the valuable information brother it's helpful so many people like me. Do some videos on Advance Java also
@HYRTutorialsTelugu
Жыл бұрын
No plan on adv java buddy 😔
@user-ng5ok6zh2o
Жыл бұрын
@@HYRTutorialsTelugu okay☺
your explanation is so good 😀
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 😊
Hi Sir, Wonderful explanation .. I have a quick question..For main() method, a space in stack memory is created to store primitives and references of this method. But ekkada na question main() anedi STATIC method kada then it should store in Method Area kada? please elaborate bit more sir.. Thank you!
@HYRTutorialsTelugu
Ай бұрын
Thats correct buddy. ikkada main ane oka method undi ani neeku stack lo entry untundi but the memory is not under it
@asirhiareddy
Ай бұрын
@@HYRTutorialsTelugu Got you sir, asalu edi nake silly question la anpinchindi ..still clarified with you..thanks a lot sir!!
Nice
@HYRTutorialsTelugu
9 ай бұрын
Thanks buddy 😊
Main method kuda static method kada adi kuda metaspace lo create avvali kada sir stack lo enduku create ayindi
@HYRTutorialsTelugu
9 ай бұрын
adi only call cheyydaniki maathrame buddy
Sir please make videos on threads
@HYRTutorialsTelugu
Жыл бұрын
Sure buddy
@user-ye1xz6fh4f
Жыл бұрын
@@HYRTutorialsTelugu your videos are very excellent and very helpful to us sir we are fully satisfied for your explanation and your knowledge
nice
@HYRTutorialsTelugu
9 ай бұрын
Thanks buddy 😊
Nice anna,join aina institutelo kuda inta matter cheppadam ledu.
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
Hello Sir, According to your explanation static methods should execute in metaspace memory then main method also should execute in Meta space as it's a static method. In this video, you mentioned like main method starting execution explained in stack memory so what is the reason behind this?
@HYRTutorialsTelugu
9 ай бұрын
Every execution entry is created in the stack entries buddy.
Great video sir, i have cleared all my doubts.Thanks alot sir.Could you please do some java projects sir.🙏
@HYRTutorialsTelugu
8 ай бұрын
Thanks buddy 🙂
Hi bro. What about Eden, Survivor1 and Survivor2?
@HYRTutorialsTelugu
Жыл бұрын
Next video lo vastai buddy.
@funzone3660
Жыл бұрын
@@HYRTutorialsTelugu Thank you bro❤
Hi, Great explanation. Generally, a size is allocated to Java (Native Area) but we increase the memory of stack then in that case will the system adds additional memory to Native Area or some part of heap memory is reduced and added to stack area.
@HYRTutorialsTelugu
Ай бұрын
Thanks buddy 🙂
Good patience
@HYRTutorialsTelugu
11 ай бұрын
Thanks buddy 😊
inko question anna heap & stack memory default values java installation appudu default gaa set avutai kada adii system resource nii base cheasukoni untadaa or every pc ki same space allocation avutundaa...
@HYRTutorialsTelugu
11 ай бұрын
Mostly same for every PC unless you change that configuration buddy
sir static methods execute stack area and non static methods heap area lo execute avuthayaa or not
how can we increase the memory in vs code ide bro
@HYRTutorialsTelugu
Ай бұрын
You can increase/decrease the available RAM for VS Code on its Settings. Go to File -> Preferences -> Settings, there you can type files.maxMemoryForLargeFilesMB and change the value for your desired maximum RAM.
thanks for the video content sir.can you do videos on angular.
@HYRTutorialsTelugu
Ай бұрын
Happy Learning buddy 🙂
thank you very much anna
@HYRTutorialsTelugu
Жыл бұрын
Happy Learning buddy 🙂
Hi Sir, When the Console enters from the main frame to another method frame after its completion you said it will be deleted from the stack. Could you please explain if the methods is called multiple times at various stages of the main method what will be the process
@HYRTutorialsTelugu
Жыл бұрын
It will create the frames then and there buddy. which means for every method call it will create the method frame. there is no reusability concept here.
@user-df6du3lp3v
11 ай бұрын
Thanks for the reply @@HYRTutorialsTelugu
❤
@HYRTutorialsTelugu
11 ай бұрын
Thanks buddy 😊
Anna your explanation is awesome... Spring boot nerchukovadaniki edina manchi website or KZread channel chepandi pls...
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 😊 No idea buddy
Thankyou Brother.. iam include the knowledge...
@HYRTutorialsTelugu
Жыл бұрын
Happy learning buddy 😊
I wish I can give you 10xxx likes. Too good andi. At 57.20 How about Thread.sleep(). It is Anonymous Object or ?? will it be sorted inside the e1, e2. Please clear it out. At 1:17:34, when you have increased memory from initial 1 to 2 and 2 to 5. Where this coming from. I mean does it taking out of Heap or it is taking from physical machine. I am sure when you increase Heap memory size that is 100% from physical machine 😀😀😀 where else it will go. Still need to know where Stack go to get memory when you increase its size.
@HYRTutorialsTelugu
9 ай бұрын
At 57:20 we are calling a static method from Thread class. Even the heap and stack memory are taken from physical memory only but a little bit of difference will be there. As mentioned in the video, when we install the java it allocates the memory to these two memories from the physical memory. so when you increase it takes from physical only.
hi anna intha indepth knowledge ekkada nundi gain chesaru?
@HYRTutorialsTelugu
9 ай бұрын
Over the time buddy
Python pina videos cheyara sir
@HYRTutorialsTelugu
Жыл бұрын
No plan buddy 😔
good sir
@HYRTutorialsTelugu
11 ай бұрын
Thanks buddy 🙂
❤❤❤❤❤❤❤
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
reactjs videos cheyandi sir
tq sir
@HYRTutorialsTelugu
Ай бұрын
Happy Learning buddy 🙂
thank u sir
@HYRTutorialsTelugu
Жыл бұрын
Happy learning buddy 😊
sir please upload remaining concepts my friends also waiting to know the remaining concepts
@HYRTutorialsTelugu
Жыл бұрын
Sure buddy
🏆🏆🏅🏅🎖
@HYRTutorialsTelugu
Ай бұрын
Thanks buddy 🙂
hi i like your classes and way of teaching iam looking phython classes is it any viedio you have plz let me know
@HYRTutorialsTelugu
Жыл бұрын
No plan buddy 😔
hello reddy please upload total concepts of java....
@HYRTutorialsTelugu
Жыл бұрын
Sure buddy
Frameworks Spring boot and microservice cheypadi bro
@HYRTutorialsTelugu
Жыл бұрын
No plan buddy 😔
Hii sir how are you sir collection topic midha assignment video appudu chestharu
@HYRTutorialsTelugu
Жыл бұрын
Chustha buddy. new topics meeda videos cheyyadaniki time set avvatledu and anduke assignment videos cheyyadam ledu
anna super anna meru
@HYRTutorialsTelugu
4 ай бұрын
Thanks buddy 🙂
Sir, MethodOverloading and Constructor overloading Separate ga Video chesta annaru..!?
@HYRTutorialsTelugu
Жыл бұрын
avi already cover ayyi unnai kada buddy previous videos lo
@HYRTutorialsTelugu
Жыл бұрын
Malli inko video chestha ani nenu epdu cheppaledu buddy
Hi sir .... Osm explanation sir... Sir meru online coaching provide chesthunnara.. Nenu join avvali anukuntunna details provide chesthara sirnaku
@HYRTutorialsTelugu
Жыл бұрын
No buddy
Sir..what is default memory that was allocated to meta space
@HYRTutorialsTelugu
9 ай бұрын
Metaspace doesn't have default space buddy. It takes the memory from your machine directly
@vamsikrishna9963
9 ай бұрын
Thanks for your reply sir... In these tough times of yours..we hope you will come back with same energy
@HYRTutorialsTelugu
9 ай бұрын
@@vamsikrishna9963 Thanks buddy 😊
Thanks Buddy 😊
@HYRTutorialsTelugu
Ай бұрын
Happy Learning buddy 🙂
anna ee comment ki reply evava plss....edhay last video naa..ee core java course ki..lekaa nkaa undhaa..?
@HYRTutorialsTelugu
Жыл бұрын
Inka unnai buddy but all the major topics are completed. So kind of course complete he
can u explain spring boot and authentication security...
@HYRTutorialsTelugu
Жыл бұрын
No plan buddy 😔
Hello bro, Please make a video on multi threading🙂
@HYRTutorialsTelugu
Жыл бұрын
Sure buddy
core java complete indaa e vedio tho complete ipoendha sirr.....
@HYRTutorialsTelugu
Жыл бұрын
Ipoindi buddy
k tq sir i request you to create video on which type of projects we write in resume for freshers and also experience persons , what type of interview questions asking in s/w companies please upload video sir tq.
@HYRTutorialsTelugu
Жыл бұрын
Fresher ki mini and major projects Experienced ki work chesina projects Interview questions anevi already every video lo highlight chesi chepthunna kada buddy
Hi sir, I want multithreading concepts Plz upload
@HYRTutorialsTelugu
Жыл бұрын
Chestanu buddy
Please provide materials aswell
@HYRTutorialsTelugu
Жыл бұрын
Inka prepare cheyyaledu buddy. Untill then you can prepare notes by watching the videos
this is the last clss of core java na...sir..?
@HYRTutorialsTelugu
Жыл бұрын
Not exactly but most of the topics are done buddy
@urukunduyadav6304
Жыл бұрын
TQ you sir
Bro threads concept chepledu
@HYRTutorialsTelugu
Жыл бұрын
Yeah Inka ledu buddy. Daani kanna mundu vere konni videos unnai. Avi finish chesi threads chepthanu
💯💥💫
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 🙂
subject lo dhammuna monagadu
@HYRTutorialsTelugu
Жыл бұрын
Thanks buddy 😊
Anna springboot framework explain cheyy anna
@HYRTutorialsTelugu
Жыл бұрын
No plan buddy 😔
Bro where is multithreading
@HYRTutorialsTelugu
Жыл бұрын
Will come up with a video soon buddy
S SIR REMAINING HOW MANY TOPICS IS THERE SIR PLEACE COMPLET THE COURSE.THANK YOU.
@HYRTutorialsTelugu
Жыл бұрын
Course is completed buddy with all the major topics. will keep on adding the videos for some small topics if required
Hi Yadagiri
@AjayKumar-fl4th
Күн бұрын
Hi Yadagiri, Execution starts from Main method ,that main method is also Static method so as per memory management it can be place in Meta space .can please provide the clarification regarding this ,After starting the execution main method directly enter the stack or it also enter the meta Space or not ? let's clarify this if possible .
Nodes provide cheyandi broooo
@HYRTutorialsTelugu
9 ай бұрын
Notes mere prepare cheskovali buddy videos chusi