1、String、StringBuffer和StringBuilder的区别
相关博文链接:
http://www.cnblogs.com/Wilange/p/7570633.html
http://www.cnblogs.com/Wilange/p/7572125.html
2、String str = new String("abc")和String str2 = "abc"这两句代码执行后分别会创建几个对象?
相关博文链接:
https://blog.csdn.net/zmx1026/article/details/46054903
https://blog.csdn.net/seu_calvin/article/details/52291082 (String的intern()方法)
https://segmentfault.com/a/1190000009888357 (字符串常量池)
3、Java中String的四种创建方式
(1)直接使用双引号创建;(String s1 = "first");
(2)使用new String()创建;(String s2 = new String());
(3)使用new String("string")创建;(String s3 = new String("string"));
(4)采用重载的字符串连接符创建;(String s4 = "fir" + "st");
4、Java中常量池的介绍
https://blog.csdn.net/zm13007310400/article/details/77534349
https://blog.csdn.net/weixin_39460458/article/details/79982765 (JDK1.8java字符串常量池里存的是String对象还是引用?)
https://blog.csdn.net/tophawk/article/details/78704074 (jdk1.8 JVM内存模型简述,含String常量池简单分析)