Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我了解java中String Pool的用例,但我想知道在实现String Pool时使用的是什么数据结构。我的意思是当我们谈论字符串的实习时,JVM 需要在整个字符串池中搜索任何现有的字符串。那么这个过程是如何优化的呢?