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
What do you mean by buffering?
What is java oops?
Can a static method be overridden in java?
What is a generic code?
Difference between arraylist and vector.
How is garbage collection controlled?
Explain the importance of thread scheduler in java?
What is t in parametric equations?
How do you get length in java?
In a class implementing an interface, can we change the value of any variable defined in the interface?
Can a class be private?
Difference between this() and super() in java ?
How do you define a method?
How many types of array are there?
What is the difference between a method and a function in alice?