String中的intern()方法分析(图文并茂容易理解)
String类中的intern()方法。
/**
* Returns a canonical representation for the string object.
* <p>
* A pool of strings, initially empty, is maintained privately by the
* class {@code String}.
* <p>
* When the intern method ...
原创
2020-08-27 19:26:50 ·
280 阅读 ·
0 评论