---
title: "Discussion on \"Garbage Collection with Java\" | Hashnode"
description: "Discussion on \"Garbage Collection with Java\". Garbage collection mechanism is must and well known in each computer language but implementation may be different in each language with variety of technics use to achieve better performance of application and memory utilization.\nIn java Garbage Colle..."
url: "https://hashnode.com/posts/garbage-collection-with-java/61ec2391a12088017fbe9e5e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Garbage Collection with Java](https://ajaysamgir.hashnode.dev/garbage-collection-with-java?utm_source=hashnode&utm_medium=feed)

Garbage collection mechanism is must and well known in each computer language but implementation may be different in each language with variety of technics use to achieve better performance of application and memory utilization. In java Garbage Colle...

Jan 22, 2022 · 3 min read · ajaysamgir.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#best-practices](https://hashnode.com/tag/best-practices)
-   [#technical-interview](https://hashnode.com/tag/technical-interview)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Ajay Samgir](https://hashnode.com/@ajaysamgir)

@ajaysamgir · india

  
[View profile](https://hashnode.com/@ajaysamgir)

Chatbot developer, Java Developer, Azure Developer

Developer with technologies like Java, Angular, C#, Azure etc.

## Responses 2

Markdown supported · ⌘↵ to post

[Shai Almog](https://hashnode.com/@talktotheduck)

[Jan 22, 2022](https://hashnode.com/posts/garbage-collection-with-java/61ec2391a12088017fbe9e5e/comment/61ec70215fbc177f9f3b59b2)

[Wrote about this too](https://talktotheduck.dev/debugging-ram-java-garbage-collection-java-heap-deep-dive-part-1) a couple of weeks ago. Notice that Java doesn't use reference counting in GCs.

This seems counter intuitive but reference counting actually slows down the GC process.

[Ajay Samgir](https://hashnode.com/@ajaysamgir)

[Jan 30, 2022](https://hashnode.com/posts/garbage-collection-with-java/61ec2391a12088017fbe9e5e/comment/61ec70215fbc177f9f3b59b2#reply-61f6725966fcfc728be1a04f)

Thanks for link, I will go with and update my blog too :)

[Vishnu S R](https://hashnode.com/@vishnusr)

[Jan 22, 2022](https://hashnode.com/posts/garbage-collection-with-java/61ec2391a12088017fbe9e5e/comment/61ec3d3a5fbc177f9f3b53d5)

Nice read ! You might also want to include **Z GC** which debuted in Java 11 and is used for low latency applications.

[Ajay Samgir](https://hashnode.com/@ajaysamgir)

[Jan 30, 2022](https://hashnode.com/posts/garbage-collection-with-java/61ec2391a12088017fbe9e5e/comment/61ec3d3a5fbc177f9f3b53d5#reply-61f6728866fcfc728be1a05a)

Sure I will add but before that I need to go deep in it :) but will update for sure :)
