In Java, a string is a sequence of characters. Strings are used to represent text in Java applications. Java provides a built-in String class that makes it easy to create and manipulate strings.
If you're building a string in Java (like in a loop), stop using the + operator! The String class is immutable (it can't be changed), so every time you use +, Java creates a brand new string object.