what is difference between String buffer and String builder?
Answer Posted / subhareddy
There is no much difference between string buffer and string
builder.only thing is all the methods available in string
buffer class are synchronized methods.and the method
available in string builder class are non-synchronized methods.
If we want thread safety then we have to go for string
buffer ,but performance goes down.if we don't want thread
safety the we can go for string builder
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
Which sorting algorithm is in place?
Does java list allow null?
What is a function easy definition?
What modifiers are allowed for methods in an interface?
Is null a string or object in java?
What is difference between checked and unchecked exception in java?
How to sort array in descending order in java?
How do you define a method?
Can we override data members in java?
What is the size of int in 64-bit jvm?
What is the list interface in java programming?
Can we synchronize static methods in java?
what is interface in java? Explain
What is the r character?
Explain the difference between the public, private, final, protected, and default modifiers?