Starting with Java 9, strings are now internally represented using a byte array along with a flag field for encoding references.