how to make string mutable in java code example Example: mutable string in java StringBuilder str = new StringBuilder(); str.append("GFG");