I read a lot about memory allocation for Strings lately and can\'t find any details if things are the same with Java 8.
How much memory space would a String like
According to the following JEP: http://openjdk.java.net/jeps/254
The current implementation of the String class stores characters in a char array, using two bytes (sixteen bits) for each character.
In Java SE 9 this might change.
Note however, since this is a JEP not a JSR (and it mentions implementation), I understand, that this is implementations specific and not defined by the JLS.