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

preview_player
Показать описание
From Java Code to Java Heap: Understanding the Memory Usage of Your Application:

Understanding JVM Memory Model, Java Memory Management are very important if you want to understand the working of Java Garbage Collection.

You might think that if you are programming in Java, what do you need to know about how memory works? Java has automatic memory management, a nice and quiet garbage collector that quietly works in the background to clean up the unused objects and free up some memory.

Therefore, you as a Java programmer do not need to bother yourself with problems like destroying objects, as they are not used anymore. However, even if this process is automatic in Java, it does not guarantee anything. By not knowing how the garbage collector and
Java memory is designed, you could have objects that are not eligible for garbage collecting, even if you are no longer using them.

So knowing how memory actually works in Java is important, as it gives you the advantage of writing high-performance and optimized applications that will never ever crash with an OutOfMemoryError.

On the other hand, when you find yourself in a bad situation, you will be able to quickly find the memory leak.

~~~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
-------------------------------

✔️SOCIAL NETWORKS
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
Рекомендации по теме
Комментарии
Автор

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.

bibekkumarbazaz
Автор

This video deserves more likes and views 🙏

GAGamingLegends
Автор

Best illustrated concept of memory management in java

techy
Автор

Best content on memory management..Thanks for sharing!

ABAutomationHub
Автор

Very good video....!! Crisp and Clear...!!! Thank you...!!

ananthasubramanian
Автор

Great video. JVM understanding is important not only for interviews but far beyond interviews.

WeWalkAI
Автор

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.

TechWithChetann
Автор

Awesome explanation!!! Terrific!! Thanks a lot!!!

niloybasu
Автор

Thank you provide valuable information about Java memory management 🙏🙏🙏

nandagopal
Автор

Thanks a lot Naveen. That was a Video which I was looking for it but never could find. Thanks for the excellent explanation.

akado
Автор

One of the best tutors you are Naveen.

rachanabanerjee
Автор

Great Explanation, this is something that I found deepen understanding of memory management. Thanks Naveen

avishsharma
Автор

Just thank you.. i relieved finally.. i ve been seaching this for years !!!

jaserq
Автор

really it is very nice video, after read this, I clear my concept on memory heap and stack. thank you navin.

prabhatpatnaik
Автор

Sir you have clear all concepts regarding java memory management. Thanks for your such great efforts in making video.

jalalzoon
Автор

Great knowledge you having sir. Thanks for this .

Saravanans-qe
Автор

never found so detailed.... thanks a ton!

meditationandrelaxationmus
Автор

Hi Naveen,
as always this is nice explanation!!
Can we say that :Java Stack memory=Class (method) area+Native Method Stack+Variables memory area

praveenautomationinterview
Автор

I am always follow your channel for java related, you rocking pls keep doing the good work. great sir!❤

saranthoughts
Автор

I really appreciate your effort Naveen. Thanks for video :)

SeadoooRider