mutable string in java

Java
StringBuilder str = new StringBuilder(); 
str.append("GFG"); 
Source

Also in Java: