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 |
What is the java virtual machine?
why there are multiple catches for a try block.don't tell me that there can be multiple exception of a code segment that's why.tell me the real fact behind this.
Why stringbuilder is not thread safe?
How do you sort in java?
how you will prevent method overriding?
How do you convert string to int in java?
What is the difference between declaration and definition in java?
class A{ class B{ } } in which name u save the file,its the program compile?
Why is stringbuffer faster than string?
What is unicode?
How hashset works internally in java?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?