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

preview_player
Показать описание
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:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Track: Lost Sky - Fearless pt.II (feat. Chris Linton) [NCS Release]
Music provided by NoCopyrightSounds.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Рекомендации по теме
Комментарии
Автор

After searching for so long, finally found this in depth analysis of garbage collection. Really appreciate your efforts!!

saivivektherala
Автор

These videos are literally helpfull.please keep uploading more videos on java

barboza
Автор

Without background music it would have better...

gauravpareek
Автор

Please make more videos about java. I loved it!!!

himanshumendapara
Автор

Awesome brother!
You just earned yourself a subscriber!
If it's not asking too much, can you please make some videos on usage of design patters with industry standard code and Low Level Design?

Would be really helpful for all as there's very little content available on the same.

vishnusingh
Автор

Background music is very disturbing. It was hard to gather the content, but it was a good content. Please don't add any background music since this is a tutorial which educates people/students. Thanks. Good Luck with your future videos.

rushmadz
Автор

Bhaii
U r teaching style is very simple and useful.
Please make a playlist of full course java.
Love from kendrapada ❤️
Big fan after seeing your podcast
In E-learning bridge 😊

prabirkumar
Автор

The explanation is lucid. Without bg music it could be even better. Please add more videos on distributed systems, scalable application design.

MegaSriku
Автор

Nice explanation sir👍👍👍
Sir make videos for placement
For those who are at 3rd year know only some basic coding

dibyadas
Автор

Sound can be more clear. Request you to make it more noiseless.

IamRajMayank
Автор

I think youre gonna be the reason Ill pass, my midterm. I couldnt make sense of how GB chose what it was gonna delete until this video <3

nonyabiness
Автор

please remove background music and change your mic overall great video

TheAIGadgetGuru
Автор

I am not placed in college bcos having less than 60% in 12th. Can you help and tell me if there is any way I get a good job in the IT field or should I stop wasting time and do something else. plz rply

AjayPrajapati-bjtr
Автор

background music is disturbing too much

PK-bkty