Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
java-basics
330+ articles
Java-Exceptions
84+ articles
Java-Output
54+ articles
Program Output
48+ articles
GFacts
43+ articles
java-JVM
16+ articles
In-house
+ articles
java-garbage-collection
10 posts
Recent Articles
Popular Articles
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
Memory Leaks in Java
Last Updated: 04 June 2025
In programming, a memory leak happens when a program keeps using memory but does not give it back when it's done. It simply means the program slowly uses more and more mem...
read more
Misc
Java
java-garbage-collection
JVM Garbage Collectors
Last Updated: 10 January 2025
JVM Garbage Collectors are essential for Java memory management. It automatically frees up unused memory to prevent memory leaks and improve performance. Java manages memo...
read more
Java
Technical Scripter
Technical Scripter 2019
DSA
java-garbage-collection
Execution Engine in Java
Last Updated: 17 May 2020
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
Z Garbage Collector in Java
Last Updated: 27 September 2021
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
Different Ways to Collect Garbage in Java HotSpot JVM
Last Updated: 28 April 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
Garbage Collection in Java
Last Updated: 04 June 2025
Garbage collection in Java is an automatic memory management process that helps Java programs run efficiently. Java programs compile to bytecode that can be run on a Java ...
read more
Java
java-garbage-collection
Output of Java programs | Set 10 (Garbage Collection)
Last Updated: 28 June 2021
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
How to make object eligible for garbage collection in Java?
Last Updated: 30 May 2018
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
Does Garbage Collection Guarantee that a Program will not Run Out of Memory?
Last Updated: 06 December 2023
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
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !