
上QQ阅读APP看书,第一时间看更新
Pre-Java 9 status
Prior to Java 9, string data was stored as an array of chars. This required 16 bits for each char. It was determined that the majority of String objects could be stored with only 8 bits, or 1 byte of storage. This is due to the fact that most strings consist of Latin-1 characters.
The ISO Latin-1 Character Set is a single-byte set of character's encodings.