Article View: cn.bbs.comp.lang.java
Article #18323Re: ����һ�ʡ���
From: ������
Date: Sun, 15 Feb 2004 10:00
Date: Sun, 15 Feb 2004 10:00
30 lines
1581 bytes
1581 bytes
�Dz��Dz�һ��ÿ������
Runtime.getDefaultRuntime().gc();
����һ��ִ��ij��û��ָ��Ķ����finallize����
���磺
//Test.java
public class Test {
public static void main(String[] args)
{
new Test();
}
public void finallize()
{
System.out.println("Hello!");
}
}
����java Test
�����ʾHello��������
�� �� eldon (The Last Escape) �Ĵ������ᵽ: ��
: ����֮ǰ���Ǻ�
: �� �� HappyStone (������) �Ĵ������ᵽ: ��
: : ����ʲôʱ���ִ��finallize?
: : ���ǡ�����
--
[m[1;34m�� ��Դ:��Ʈ��ˮ�Ƽ� freecity.cnzju.net��[FROM: HappyStone][m
Technical Details
Message-ID:
<4Af25g$AeG@freecity.cnzju.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nx02.iad01.newshosting.com!newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!FreecityShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,a0149d8239b4a831 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2004-02-15 02:04:50 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nx02.iad01.newshosting.com!newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity From: HappyStone.bbs@freecity.cnzju.net (������) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ����һ�ʡ��� Date: 15 Feb 2004 10:00:07 GMT Organization: Ʈ��ˮ�Ƽ� Message-ID: <4Af25g$AeG@freecity.cnzju.net> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1076839194.A