Difference between the String and StringBuffer classes?
Answers were Sorted based on User's Feedback
Answer / anitha
yes, String is a immutable that means once the string
object is created it cannot be changed.
String Buffer: it is a mutable,this object is changed if we
make any modifications.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / sathya
String class is immutable i.e oncle created the value
cannot chage.
Stringbuffer class is mutable.The value can change.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / latha
String is immutable and StringBuffer is mutable as most of
we know. In performance, StringBuffer is faster than the
String while performing simple concatenations.
Is This Answer Correct ? | 5 Yes | 0 No |
What is the difference between Java1.4 and Java1.5
What is passing by reference in java?
What are other modifiers?
What is the structure of java?
What is the difference between and ?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
if two references are having same hash codes,is that means those are refering to same object?
What is race condition ?? (Threading concept) TCS 2 sept10
What is class forname?
How can we make string upper case or lower case?
What are possible key words, we can use to declare a class?
Can I use % with real numbers?