116

JAVA中的String对象-哈喽酷你-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13569660/2068361
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
String 对象的特点String对象的数据不可改变!String类型对象封装了一个字符串数组任何的操作也不能改变这个字符数组的内容String s = "123";String ss = s;s = s+"abc";System.out.println(s);//123

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK