Java's Garbage Collection Explained - How It Saves your Lazy Programmer Butt

preview_player
Показать описание
This is how Java does memory management through garbage collection!

Ever wondered how garbage collection works in Java? Java handles a lot of memory management by itself behind the scenes, so you never have to think about it. We'll talk about what it cleans up, and how it does it in a simple way that even beginners will easily understand!

Learn or improve your Java by watching it being coded live!

Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.

Let me know what else you'd like to see!

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch

📕 One of my favorite programming books, Clean Code by Robert Martin

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial

🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)

📹Camera I use for recording:

🎙️Microphone I use (classy, I know):

Donate with PayPal (Thank you so much!)

00:00 Why Do We Need a Garbage Collector?
01:49 How Java Chooses What to Dump
03:56 How Else Can It Become Abandoned?
05:17 How the Garbage Collector Works
08:00 What Next?
08:45 BONUS

☕Complete Java course:

Рекомендации по теме
Комментарии
Автор

⁠Hi John, loving your videos. I am a senior Java Developer too and your explanations help me reaffirm my understanding and most of the time declutter my misunderstanding.

You are excellent at what you do. Request you to consider a course on Design Patterns. Ty!

Phoenix-odbp
Автор

Your ability to effectively simplify complex topics with the exact right amount of information is impressive. Thank you for sharing your insight!

dr.sweetlove
Автор

Besides the excellent coding tutorial, I come here to John's uplifting presence and his joyful smile.❤

iparadoxg
Автор

I had some questions about garbage collection and multithreading for java in an interview. This video opened my mind about java. I was thinking like, Oh, i know java. But there is much to learn i guess. Thanks a lot!

ensarmakas
Автор

Thank you, John. I'm still in school and constantly feel like I know nothing, but watching your videos and genuinely learning something makes me feel slightly better lol. Thank you for what you do.

JB-gvpt
Автор

Make a video on how to optimize java code's performance!

i_nsaan
Автор

Kindly do dynamic programming, you make the complicated so simple .much love from Kenya

denniskaranja
Автор

I often heard garbage collection but hadn't understood it's mechanism at all. It doesn't affect my Java coding much to learn fundamental concept, But I think it will help me code properly. Your videos very easy and helpful to understand fundamental concept about programming for beginner. many thanks!

yte
Автор

John, love your content, i'm primarily self taught and want to turn this into a career after my current obligations. I had some ideas i'd love to see from you, one being for people like myself, of which there are many, is a video detailing many of things that get overlooked when self taught, for example, how array lists and linked list differ performance wise (This isn't the best example but hopefully you get the idea), there are lots of things overlooked when getting from point A to point B being self taught and it could be really useful. A more simple idea i would love to see is a video teaching use about bitwise operators and how they are used and work, or maybe a video talking more about bigger picture things like using version control with git and team environments, love the content, keep it up!!!

Metorrite
Автор

I am being studying and work with Java very long time, but Only John's video I love the most! Nice video as always. Is that possiable you can talk about Comparator ?

alexlfo
Автор

Great tutorial John, thank you for the video ! Please keep up with such more complex concepts, you are a great teacher.

zxtqwwr
Автор

Good to see you back, pal! Never thought about GC as you said, but this was a really good understandable explanation of getting into it

TheXxEvolution
Автор

No bs, straight to the point showing us how its done.

samuelnilsson
Автор

i despise java but your channel is still very very helpful, thank you :)

sercascade
Автор

Hello John :) can you please make a video about spring boot? It’s so useful but so confusing still for me :/

aldoumene
Автор

I really appreciate your effort with these videos

misaonthefly
Автор

a part of gc that i find interesting is WeakReference and SoftReference, which indicate to the gc that although this object is referenced it can still be collected now or whenever you really need to free the space

LukasOwen
Автор

Once upon a time, I had some colleagues who believed that setting a variable to null somehow "helped" the garbage collector. It was difficult to convince them that it was all superstition, and that no, it wasn't doing anything.
Sometimes, the smartest minds are also the dumbest.

tipeon
Автор

Hey John! I would love to see a video about Ressource bundle :)

melzasmaldoran
Автор

Thank you John, I was looking for a content regarding GC. I owe you a coffee.

I-can-do-that-