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 |
Is this valid in java ? Can we instantiate interface in java?
What is AppletStub?
What do you understand by Header linked List?
What are the access modifiers in java?
What is a values collection view ?
what is the diff between Servletcontext and servletconfig?
What is method overloading with type promotion?
Is java jre still free?
How to eliminate duplicates from an array?
6 Answers ABC, AdMod, Adobe, College School Exams Tests, Patni, Wipro,
What is the java reflection api? Why it’s so important to have?
What are anonymous inner classes?
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet?