3 ms·
From java9 onward if all the characters in a string are ASCII then java will store them in a byte array with one byte per character. This ends up covering a lot
by discreteevent 6y ago
From java9 onward if all the characters in a string are ASCII then java will store them in a byte array with one byte per character. This ends up covering a lot of strings.