Java 9: Compact Strings

2698 days ago via vojtechruzicka    Discuss    Technology

Java 9 brings a new improved string, which in most cases, will reduce String memory consumption to half. String memory consumption The value of each String is internally contained in a char[] array. Each character is two bytes, sixteen bits. As this is UTF-16, it allows even representation of all the special characters. The problem […]


The post Java 9: Compact Strings appeared first on Vojtech Ruzicka's Programming Blog.

Submit a Comment

Log in to comment or register here