How does java implement flyweight pattern for string under the hood?

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-05-26T02:51:12Z Indexed on 2010/05/26 3:01 UTC
Read the original article Hit count: 329

If you have two instances of a String, and they are equal, in Java they will share the same memory. How is this implemented under the hood?

© Stack Overflow or respective owner

Related posts about java

Related posts about design-patterns