摘要:参照 https://blog.csdn.net/qq_31383041/article/details/73599436 1、intern()方法设计的初衷,就是重用String对象,以节省内存消耗。这么说可能有点抽象,那么就用例子来证明。 这个例子也比较简单,就是为了证明使用intern()比不
阅读全文
posted @ 2019-04-24 15:22
posted @ 2019-04-24 15:22