In Java, a String is a sequence of characters that represents text. It is an immutable class, meaning that once a String object is created, its value cannot be changed.
The documentation contains the following recommendations: Don't use string objects for string literals that are frequently changed. This causes performance issues as several string objects are created ...