Answers for "why we use string buffer in java"

3

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
Posted by: Guest on June-09-2021

Code answers related to "why we use string buffer in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language