string buffer in java code example
Example: string buffer in java
StringBuffer buffer = new StringBuffer("Harvard");
// mutable we modify object
buffer.append(" School");
// append method we are calling from Buffer ** synchronized means slow
System.out.println(buffer); // Harvard School