StringBuffer
Introduction to Java StringBuffer class.
String Buffer class
Section titled “String Buffer class”Key Points :-
Methods :-
Example Showing diffrence between String and String Buffer implementation :-
class Test { public static void main(String args[]) { String str = "study"; str.concat("tonight"); System.out.println(str); // Output: study
StringBuffer strB = new StringBuffer("study"); strB.append("tonight"); System.out.println(strB); // Output: studytonight }}