🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: [string��Stringbuffer]��������

#18802
From: ҹɫ,�����
Date: Thu, 29 Jan 2004 06:34
14 lines
1375 bytes
A String instance is  immutable,that is ,u can not change a String instance 
insteaded of build a new one from the old one 
eg:
    String a = "name";
    a = a.subString(0,1);
after the second line ,u will get tow instance:
    "name" and "n"
that means when u operate the String frequently(eg:in for or while loop),
u will produce a lot of short life String instace.
StringBuffer is mutable,u can change it without producein temporary instance.
a lout �� �� xixixi.bbs@freecity.cnzju.net (��������) �Ĵ������ᵽ: ��
:  STRING���STRINGBUFFER���ԣ����������ﰡ
--
�� ��Դ:���Ұ��Ͽ�վ bbs.nankai.edu.cn��[FROM: 211.151.91.194] 
Technical Details
Message-ID: <4ARUja$9uU@bbs.nankai.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f6cb0,44e94ba0afbad865,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2004-01-28 22:35:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai
From: gmark.bbs@bbs.nankai.edu.cn (ҹɫ,�����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [string��Stringbuffer]��������
Date: 29 Jan 2004 06:34:50 GMT
Organization: �Ұ��Ͽ�վ
Message-ID: <4ARUja$9uU@bbs.nankai.edu.cn>
X-Filename: Java/M.1075357332.A