From Javalobby:
This article is based on my answer on StackOverflow. I am trying to explain how String class stores the texts, how interning and constant pool works. The main point to understand here is the distinction between String Java object and its contents - char[] under private value field.
Tagged: #stackoverflow #java #compilers #memory #strings #tips