What is Garbage Collection ?
Many programming languages permit the memory to be allocated dynamically at runtime. The process of allocating memory varies base on the syntax of the language,the Java APIs consist of the classes that programmers are allowed to use in their own classes.
After the alocatted memory to longer required ( The pointer that reference the memory has gone out of extent), the programs or runtime environment should de-allocate the memory.
In C++, C, and other languages, you are responsible for de-allocating the memory. This can be difficult exercise at times, Because you do not always know in advance when should be released. Programs do not de-allocate memory can crash eventually when there is no memory left on the system to allocated. These programs have said to have memory leaks.
No comments :
Post a Comment