StringBuffer VS StringBuilder

There is  only one difference between StringBuffer and StringBuilder that StringBuffer is thread safe and StringBuilder is not thread safe so whenever you want thread safety so you should go with StringBuffer but there will be loss of some time, so if you want fast process and multithreading is not required so you should go with StringBuilder

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s