码迷,mamicode.com
首页 > 其他好文 > 详细

String,StringBuffer,StringBuilder的区别

时间:2016-09-25 20:37:36      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:

StringBuffer和StringBuider的区别                                                                                                        

  StringBuffer是jdk1.0版本的,是线程安全的,效率低                                                                   

  StringBuilder是jdk1.5的,是线程不安全的,效率高                                                       

String和StringBuffer,StringBuilder的区别                                                         

  String是一个不可变的字符序列                                                                          

  StringBuffer,StringBuilder是可变的字符序列

String,StringBuffer,StringBuilder的区别

标签:

原文地址:http://www.cnblogs.com/wqtd77/p/5906603.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!