Emertxe-News & Blog

Home » Debugging » Performing Garbage Collection in Java
Performing Garbage Collection in Java

In object-oriented programming languages (like C++ and Java), there could be unused objects that are still a part of the program. These will create undesirable results like an out of memory error, for instance, during run-time, if left unattended. The memory occupied by such objects is known as ‘garbage’ and the mechanism to eliminate this from the program is called ‘garbage collection’.

Unlike C++, Java provides the programmer with an assistant to delete useless objects, which is called the garbage collector. In Java, there is no OutOfMemoryError thanks to the garbage collector, which destroys unused objects. Java is also called a robust programming language because of such mechanisms. Because of this background mechanism, the stress on the programmer is significantly less.

Written by one of our mentors, January 2015 edition of Open Source For You (OSFY) is having an article titled ‘Performing Garbage Collection in Java’ got published. Here is the URL to download the complete PDF version of the article:


Best Embedded systems training institute with placements in Bangalore.


Online Free IoT Internship for Engineering Students – 2023

Online Free IoT Internship for Engineering Students – 2023

The Internship Ecosystem An internship is a type of professional learning opportunity where engineering students get practical work related to their field of study or career interest. Through an internship, a student can explore and advance their career while...


Submit a Comment

Your email address will not be published. Required fields are marked *