String Buffer class

suggest change

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
 }
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents