what is the difference between String and StringBuffer classes?
Answers were Sorted based on User's Feedback
Answer / kishore cheruku
a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings.
Is This Answer Correct ? | 23 Yes | 0 No |
Answer / tarun choudhary
The String class is used for strings that are not allowed to change. The StringBuffer class is used for strings that may be modified by the program.
Is This Answer Correct ? | 15 Yes | 0 No |
How to convert string to char and vice versa?
diff b/w sleep(1000) and wait(1000)?
What is difference between abstract class & final class
How do I get 64 bit java?
What is not object oriented programming?
Why is java not 100% pure oops?
how to print a numbers from 1 to 100 with out using control structures?
solve (x-1)(x-9)=8;
3 Answers IBM, Manhattan, TCS,
What is a linkedhashmap java?
What is the difference between array list and vector in java?
What is the difference between access specifiers and access modifiers in java?
Why arraylist is used in java?