What is the difference between String and String Buffer?
3464
25-Oct-2010
Pushpendra Singh
08-Nov-2010growable and modifiable string where as String class supports constant strings. Strings once created we cant
modify them. Any such attempt will lead to the creation of new strings.String values are resolved at run time where as StringBuffer valuesc are resolved at compile time.So if you know the exact size of the string to be appended it is better to go for String objects.