String & String buffer class in java
String & String buffer class in java Before starting with string and string buffer class lets get te concept about string . What is string..? we can say that string is a sequence of characters so induvidually charactes make a string . OR we can say that string is an array of characters. Suppose we take an example how we did in c and c++ char a[5]="hii"; OR char a[]= { 's' , 't' , 'r' , 'i' , 'n' , 'g' , }; so java stated a new concept about storing strings Java gave a readymade class for storing string they 1) string class 2)string buffer class Normally whatever we write in java that is the sequence of charater represent the object of string class. As usual we write some string in java keep in mind that is the object representing string class . And that string is immutable i.e. cannot be alte