1.1. For the String type, when we declare a String type variable, String test = "STRING"; at this time, test is only a reference, and the true String is the STRING.
1.2 · String is an unchangeable class, so when we test + = "BUFFER", the original STRING still exists in the memory. After adding the BUFFER, memory opened up a space, put the STRINGBUFFER string, and point test to this space.
1.3 · StringBuffer class, which can be modified. Not every different string must generate a new object.
1.4. For String constants, if the content is the same, Java considers them to represent the same String object. Using the new keyword to call the constructor always creates a new object, regardless of whether the content is the same or not.
1.5 · immutable class because its object is read-only, there will be no problem with multi-thread concurrent access. However, each State must be represented by an object, which may cause performance problems.