StringBuilder is used to create mutable strings, which is more efficient than using immutable string objects.
Source Code
public class StringBuilderExample {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder("Hello");
sb.append(", World!");
System.out.println(sb.toString());
}
}