String s = "a";与String s = new String("a")的区别


字符串s = quota quot;String s =新字符串( quota quot)String s = " a quot;String s =新字符串( quota quot):String s = " a quot,将从字符串常量池中找到对象“a ”,但是新字符串( quota quot)会从字符串常量池中寻找吗?如果字符串常量池中不存在“A”对象,则新字符串
转载请注明原文地址:https://juke.outofmemory.cn/read/1870160.html

最新回复(0)