Article View: cn.bbs.comp.lang.java
Article #18802Re: [string��Stringbuffer]��������
From: ҹɫ,�����
Date: Thu, 29 Jan 2004 06:34
Date: Thu, 29 Jan 2004 06:34
14 lines
1375 bytes
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���ԣ����������ﰡ
--
[m[1;35m�� ��Դ:���Ұ��Ͽ�վ bbs.nankai.edu.cn��[FROM: 211.151.91.194][m
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!NanKaiShow 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