--- old/src/java.base/share/classes/java/lang/String.java 2014-12-19 12:15:39.319858004 +0300 +++ new/src/java.base/share/classes/java/lang/String.java 2014-12-19 12:15:39.179858009 +0300 @@ -128,6 +128,11 @@ */ private static final ObjectStreamField[] serialPersistentFields = new ObjectStreamField[0]; + + /** + * a shared instance of the string value for empty strings. + */ + private static final char[] EMPTY_STRING_VALUE = new char[0]; /** * Initializes a newly created {@code String} object so that it represents @@ -135,7 +140,7 @@ * unnecessary since Strings are immutable. */ public String() { - this.value = new char[0]; + this.value = EMPTY_STRING_VALUE; } /**