摘要: 为什么说string是不可变的那? 先看这段代码 String str = "123"; System.out.println(str); //输出123 str = "abc"; System.out.println(str); // 输出abc 这段代码是可以执行的,并且字符串str的值也可以改 阅读全文
posted @ 2022-09-06 11:57 XSS9 阅读(88) 评论(0) 推荐(0)