🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [��]��ʱִ��static��ʼ����

#18541
From: The Last Escape
Date: Sun, 08 Feb 2004 12:28
27 lines
2470 bytes
�� �� haha.bbs@bbs.neu.edu.cn (���˾�Ц) �Ĵ������ᵽ: ��
: �ڵ�һ�η������ʱ���ʼ�������� new �����ǵ��� method ������ʹ������� field
: �����ʱ�����޻���ʼ�� static ��Ա�ģ�����
: static double d=Meth.random();
  �������Ƿ���field������Ļ�����private static double d=Meth.random();�Dz��е�
  �ں����ڲ���static��java��������ij�ʼ��������ͨ�����ʱ�ļ�飬ǿ�ȳ���Ա
  ���б����ij�ʼ��
  
  ���������Ա��static���������ڱ����ʱ���ʼ����
  ��5188
  
: �����ʱ���Dz�����֪�� d ��ֵ�ġ�
: �� �� romie. �Ĵ������ᵽ: ��
: : ��֪�����ڵ�һ��newһ������ʱ�����ǵ�һ�η��ʸ����static��Ա
: : ʱ��
: : ������ִ�и������һstatic����Ҳ������static��ʼ����


--
/*----------------------------------*/  
(!C++)?JAVA:VB.NET    //���ѡ���е���  
��� ����MFC��.NET��JAVA һ���������٣�  
���� ------- E---N---G---L---I---S---H 
/*----------------------------------*/   

�� �����޸�:��eldon � Feb  8 20:28:50 �޸ı������ݡ�[FROM: eldon]
�� ��Դ:��Ʈ��ˮ�Ƽ� freecity.cnzju.net��[FROM: eldon]
Technical Details
Message-ID: <4AZVE5$A0K@freecity.cnzju.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,9c129d916de9def5
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-02-08 04:31:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!Freecity
From: eldon.bbs@freecity.cnzju.net (The Last Escape)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [��]��ʱִ��static��ʼ����
Date: 08 Feb 2004 12:28:50 GMT
Organization: Ʈ��ˮ�Ƽ�
Message-ID: <4AZVE5$A0K@freecity.cnzju.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1076242853.A