Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
java-basics
334+ articles
Java-Exceptions
84+ articles
Java-Output
54+ articles
Program Output
37+ articles
GFacts
22+ articles
java-JVM
18+ articles
In-house
+ articles
java-garbage-collection
10 posts
Recent Articles
Does Garbage Collection Guarantee that a Program will not Run Out of Memory?
Last Updated: 23 July 2025
The work of Garbage collection in Java isto automate the process of deleting memory that's no longer in use. But does that mean Java programs are free from memory limit ov...
read more
DSA
GFacts
Dynamic Memory Allocation
java-garbage-collection
Different Ways to Collect Garbage in Java HotSpot JVM
Last Updated: 23 July 2025
JDKs come with different JVM implementations (Oracle HotSpot, Eclipse OpenJ9, GraalVM, Jikes RVM, Codename One), and different garbage collector implementations with diffe...
read more
Java
java-garbage-collection
Z Garbage Collector in Java
Last Updated: 23 July 2025
Today, it's common for applications to respond to thousands or even millions of users concurrently. Such applications need immeasurable amounts of memory. However, managin...
read more
Java
Picked
java-garbage-collection
Execution Engine in Java
Last Updated: 12 July 2025
Java virtual machine or JVM can be visualized as a virtual machine residing in the computer that provides an environment for the code to get executed. Java Runtime Environ...
read more
Java
java-basics
java-garbage-collection
java-JVM
JVM Garbage Collectors
Last Updated: 05 February 2026
JVM Garbage Collectors are responsible for automatic memory management in Java. They free unused objects from the heap to prevent memory leaks and improve application perf...
read more
Java
Technical Scripter 2019
java-garbage-collection
Memory Leaks in Java
Last Updated: 31 January 2026
Memory leaks in Java occur when objects that are no longer needed remain referenced, preventing garbage collection. Over time, this increases memory usage, degrades perfor...
read more
Misc
Java
java-garbage-collection
Understanding OutOfMemoryError Exception in Java
Last Updated: 15 September 2023
In Java, all objects are stored in a heap. They are allocated using a new operator. The OutOfMemoryError Exception in Java looks like this: Exception in thread "main" java...
read more
Java
Java-Exceptions
java-garbage-collection
How to make object eligible for garbage collection in Java?
Last Updated: 23 July 2025
An object is eligible to be garbage collected if its reference variable is lost from the program during execution.Sometimes they are also called unreachable objects.What ...
read more
Java
java-garbage-collection
Output of Java programs | Set 10 (Garbage Collection)
Last Updated: 23 July 2025
Prerequisite - Garbage Collection in JavaDifficulty level : IntermediateIn Java, object destruction is taken care by the Garbage Collector module and the objects which do ...
read more
Java
Program Output
Java-Output
java-garbage-collection
Garbage Collection in Java
Last Updated: 28 May 2026
Garbage Collection (GC) in Java is an automatic memory management process performed by the JVM. It helps in removing unused and unreachable objects from heap memory, which...
read more
Java
java-garbage-collection