Help the world stop coronavirus! Stay home!

Prev Next

Java / Strings

Difference between StringBuffer and StringBuilder.

All the methods in StringBuffer is synchronized whereas in StringBuilder, it is not synchronized.

StringBuffer is threadsafe while StringBuilder is not. If you need to manipulate a string in a single thread, use StringBuilder instead.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Using String

Comments & Discussions