DEV Community

Discussion on: #Strings in Java

Collapse
wldomiciano profile image
Wellington Domiciano

Nice post!

I would like to add just one detail:

It is true that Strings are backed internally by a char array, but only up to Java 8.

As of Java 9, Strings are backed by a byte array.

You can see this in the source code: