Skip to content

Tag Archives: java-garbage-collection

Today, it’s common for applications to respond to thousands or even millions of users concurrently. Such applications need immeasurable amounts of memory. However, managing all… Read More
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… Read More
prerequisites: Garbage Collection, Mark and Sweep algorithm Garbage Collection: Garbage collection aka GC is one of the most important features of Java. Garbage collection is… Read More
The garbage collector in Java is automatic, i.e the user doesn’t have to manually free an occupied memory which was dynamically allocated. And how does… Read More
In C, programmers totally control allocation and deallocation of dynamically created objects. And if a programmer does not destroy objects, memory leak happens in C,… Read More
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… Read More
Although Java provides automatic garbage collection, sometimes you will want to know how large the object heap is and how much of it is left.… Read More
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.… Read More
Prerequisite – Garbage Collection in Java Difficulty level : Intermediate In Java, object destruction is taken care by the Garbage Collector module and the objects… Read More
Garbage collection in Java is the process by which Java programs perform automatic memory management. Java programs compile to bytecode that can be run on… Read More

Start Your Coding Journey Now!