The garbage collector is a special feature that distinguishes Java from other programming languages. It frees programmers from the heavy work of manually reclaiming memory space. In the Java Programmer certification exams of SUN, the garbage
The previous article introduced. the basic principles of net garbage collection and the internal mechanism of implementing the Finalize method for garbage collection; this article describes weak reference objects, generation, and multi-thread
Weak References: when the root object of a program points to an object, this object is reachable and cannot be recycled by the garbage collector, which is called a strong reference to the object. Strong references are relatively weak references.
Pioneering ageDomesticProgramMost of the members felt the charm of the garbage collection technology for the first time in the Java language, so many people regard Java and garbage collection as an inseparable whole. But in fact, the garbage
English Original: Jeffrey RichterCompilation: Zhao Yu OpenLinks: http://www.cnblogs.com/yukaizhao/archive/2011/11/23/dot_net_GC_1.htmlWith the garbage collection mechanism in the Microsoft.NET CLR, programmers do not need to pay attention to when to
Keywords: Java Learning
Note:TheArticleFor reprinting!
We know that manyProgramAll the design languages allow dynamic allocation of memory space during the runtime. Memory Allocation varies depending on the syntax structure of the language.
With the garbage collection mechanism in Microsoft. Net clr, programmers do not need to pay attention to when to release the memory. The memory is released completely by GC, which is transparent to programmers. However, as a. Net programmer, it is
We know that many programming languages allow dynamic allocation of memory space during the runtime. Memory Allocation varies depending on the syntax structure of the language. However, no matter which language is used for memory allocation, the
The garbage collector system has its own set of programs to determine which memory block should be recycled, which is not eligible for temporary recovery. The garbage collector's execution in a Java program is automatic and cannot be enforced, even
The advantage of garbage collection is indisputable-improved reliability, separated memory management from class interface design, and reduced the developer's time to track memory management errors. The well-known hanging pointer and Memory leakage
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.