- 博客(1)
- 收藏
- 关注
转载 String类学习笔记
1.String 类是不可改变的解析,例如:String s = "Google"; System.out.println("s = " + s); s = "Runoob"; System.out.println("s = " + s);输出结果为:Google Runoob从结果上看是改变了,但为什么门说String对象是不可变的呢? 原因在于实例中的 s 只是一个 String 对象的引用...
2018-06-15 10:30:11 169
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人