RSS
热门关键字:  java  Ajax  JSP  JSF  Struts
当前位置 : 首页>Spring>列表

Jdk1.4 和jdk1.5中的StringBuffer的不同

来源: 作者: 时间:2007-08-09 点击:
            this . offset = 0;

            this . count = buffer.length();

        }

 }

没有重新 new 内存空间,是共享的,这个时候首先想到的问题,如果 StringBuffer 变了, String 怎么办

 

继续看 StringBuffer 的操做,例如 deleteCharAt ()

public synchronized StringBuffer deleteCharAt( int index) {

        if ((index < 0) || (index >= count ))

           throw new StringIndexOutOfBoundsException();

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
Google Adsense
相关文章