Source |
CodingSec |
Identifiant |
38114 |
Date de publication |
2016-09-09 18:00:04 (vue: 2016-09-09 18:00:04) |
Titre |
How garbage collection is done in java |
Texte |
In this article we will learn about garbage collection, which is a mechanism for freeing the memory occupied by objects which are no longer used in a program. Garbage Collection In most of the object oriented programming languages, memory management (allocating and deallocating memory) is left to the user and it is generally error prone (user might forget to free the memory occupied by an object). Objects are allocated memory in the heap memory which grows and shrinks dynamically. Java provides automatic memory management through a mechanism known as garbage collection. Unused objects are collected for garbage collection by
|
Envoyé |
Oui |
Condensat |
about allocated allocating appeared are article automatic coding collected collection collectionâ deallocating done dynamically error first forget free freeing garbage generally grows heap how java known languages learn left longer management mechanism memory might most object objects occupied oriented post program programming prone provides security shrinks through unused used user which will |
Tags |
|
Stories |
|
Notes |
|
Move |
|