What is the main difference between StringBuilder and StringBuffer in Java? Is there any difference on performance for these 2?
StringBuffer is synchronized, StringBuilder is not synchronized.
StringBuffer
StringBuilder
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
StringBuffer
is synchronized,StringBuilder
is not synchronized.