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 is compiler and what its output.
What is argument in java?
Write a method to check if input string is palindrome?
What is one third plus one third as a fraction?
Why deletion in linkedlist is fast than arraylist?
Justify your answer that you can't define a method inside another method in java, if you can then how?
Which is best ide for java?
Write a program based on Java script program.
What do you mean by exception handling in Java?
What is the symbol for line break?
How can you read content from file in java?
a thread is runnable, how does that work? : Java thread
What are the different types of methodologies?
Can each java object keep track of all the threads that want to exclusively access it?
What is string made of?