Garbage Collection in Java | What is GC and How it Works in JAVA | Part One

Описание к видео Garbage Collection in Java | What is GC and How it Works in JAVA | Part One

Garbage Collection is the process of reclaiming the runtime unused memory by destroying the unused objects.

It is a part of the Java Virtual Machine (JVM) and helps you maintain free memory in your system for running Java applications.

In languages like C and C++, the programmer is responsible for both the creation and destruction of objects. Sometimes, the programmer may forget to destroy useless objects, and the memory allocated to them is not released. The used memory of the system keeps on growing and eventually there is no memory left in the system to allocate. Such applications suffer from "memory leaks".

A standard Garbage Collection implementation involves three phases:
1. Mark
2. Sweep
3. Compact

Java Garbage Collectors implement a generational garbage collection strategy that categorizes objects by age.

In this video, I'll talk about Garbage Collection in Java and cover the following topics:
1. What is Garbage Collection
2. How Garbage Collection works in Java
3. How to dereference objects in Java
4. What are the different heap generations
5. What is minor and major garbage collection

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you liked this video, please hit the like button and subscribe to my channel. Don't forget to press the bell icon to receive notifications about my future videos.

If you have any queries or feedback, please mention it in the comments. You can also reach out to me on the following handles:

💥 LinkedIn -   / theawesomenayak  
💥 Twitter -   / theawesomenayak  
💥 Instagram -   / theawesomenayak  

Book a session with me on TopMate - https://topmate.click/xp8t
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Track: Lost Sky - Fearless pt.II (feat. Chris Linton) [NCS Release]
Music provided by NoCopyrightSounds.
Watch:    • Lost Sky - Fearless pt.II (feat. Chri...  
Free Download / Stream: http://ncs.io/Fearless2YO
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Комментарии

Информация по комментариям в разработке