I noted that the Javadocs of Oracle StringBuilder and of Codename One StringBuilder have differences. For example, the first is not thread safe and the second is thread safe.
However, my question is about the Codename One version of the StringBuilder, in particular about this incomplete sentence, in which the examples are missing: «String builders are used by the compiler to implement the binary string concatenation operator +. For example, the code: is compiled to the equivalent of:».
So, my question is if there isn't any advantage in the use of StringBuilder instead of the + operator between Strings. I noted that in the Codename One sources you use a lot the StringBuilder, but in my apps if I concatenate one hundred of String or if I append them using a StringBuilder is exactly the same thing in terms of performance and memory? Even if the content of these Strings is not known at compile time?
+=operator between Strings. - Francesco Galgani