java中String与StringBuffer学习
String:每次创建一个对象,字符串是不可变的
String a = new String("asd");
源码
/**
* Initializes a newly 【初始化一个新创建的】created {@code String} object so that it represents
* the same sequence of characters as the argument; in other words, the
* newly created stri
原创
2021-07-04 15:25:31 ·
161 阅读 ·
0 评论