【Java】String str = new String("abc");问题
时间:2014-11-14 11:57:07
收藏:0
阅读:310
String str = new String("abc");
解释:Initializes a newly created String
object so that it represents
the same sequence of characters as the argument; in other words, the newly
created string is a copy of the argument string. Unless an explicit copy of
original
is needed, use of this constructor is unnecessary since
Strings are immutable.
原文:http://www.cnblogs.com/cuinidaye/p/4096671.html
评论(0)