2 ms·
> In Java, there is a 'String' class that is used for strings most of the time Nearly all the time. Only time you're likely to see a char[] is in high performa
by EdwardDiego 6y ago
> In Java, there is a 'String' class that is used for strings most of the time
Nearly all the time. Only time you're likely to see a char[] is in high performance code needs to mutate strings in a space efficient manner.
I would also mention CharSequence, an interface implemented by several string like classes.