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 a choice and a list?
What's the purpose of using break in each case of switch statement?
What is advantage of using threads?
How is Object Oriented Programming different from Procedure Oriented Programming?
How to connect to a remote database using Applet?
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
What is the class in java?
What is the difference between variable declaration and variable initialization?
What happens if an exception is not handled in a program?
What is an empty string in css?
What are the application of stack?
What modifiers are used for interface declaration?