The StringBuilder class represents a string that can be modified.
Suppose we have an object of this class and use its methods to modify the string.
final StringBuilder builder = new StringBuilder();
builder.append("123");
Why does this code work correctly?