Garbage Collector: The Desirable Aspect of Java
haytam_7
Posted on January 18, 2022
So what is a garbage collector? 🚮
Each time we declare an object we use a system resource known as memory.
And here are some questions that spring to mind:
What happens to the objects that we no longer need?
Do we have to care about freeing up the space we are using?
Fortunately, Java programmers need not to care about objects that are no longer in use, that's because Java automatically frees up this space and destroys these unreachable objects and this reduces the chances of having memory leaks (which are common in other languages)
💖 💪 🙅 🚩
haytam_7
Posted on January 18, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.