🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #18590

[��]finalizeһ�ʡ�

#18590
From: Raymond
Date: Fri, 06 Feb 2004 06:43
15 lines
1469 bytes
tij��˵��
Java provides a method called finalize( ) that you can define
 for your class. Here��s how it��s supposed to work.
When the garbage collector is ready to release the storage
used for your object, it will first call finalize( ), and
only on the next garbage-collection pass will it reclaim the
 object��s memory. So if you choose to use finalize( ),
it gives you the ability to perform some important cleanup
at the time of garbage collection.
����˵Ҫ�����Ѽ����ڶ�������ʱ�Ż������ͷ��ڴ棿
��һ��ֻ�ǵ���finalize������


--
�� ��Դ:��Ʈ��ˮ�Ƽ� freecity.cnzju.net��[FROM: romie]
Technical Details
Message-ID: <4AXhMi$A0G@freecity.cnzju.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB
X-Google-Thread: f6cb0,e44bb2dab4026514,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-02-05 22:46:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: romie.bbs@freecity.cnzju.net (Raymond)
Newsgroups: cn.bbs.comp.lang.java
Subject: [��]finalizeһ�ʡ�
Date: 06 Feb 2004 06:43:50 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <4AXhMi$A0G@freecity.cnzju.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1076049740.A