string buffer in java

Solutions on MaxInterview for string buffer in java by the best coders in the world

showing results for - "string buffer in java"
Maite
18 Jun 2018
1StringBuffer buffer = new StringBuffer("Harvard"); 
2// mutable we modify object
3        buffer.append(" School"); 
4// append method we are calling from Buffer ** synchronized means slow
5
6        System.out.println(buffer); // Harvard School