Java provide three string manipulation classes String,StringBuilder and StringBuffer.
In which StringBuilder is not synchronize and StringBuffer is synchronize.
So I just want to ask is there a possibility to synchronize StringBuilder.
Sure, just synchronise externally, either by using synchronized blocks or manually when you access the StringBuilder from multiple threads.
But why would you want to? You have StringBuffer already.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With