Home > DeveloperSection > Forums > StringBuilder and StringBuffer
ezra heywood
ezra heywood

Total Post:145

Points:1019
Posted on    May-16-2015 12:32 AM

 Java Java  String 
Ratings:


 1 Reply(s)
 575  View(s)
Rate this:
What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?


Mayank Tripathi
Mayank Tripathi

Total Post:397

Points:3117
Posted on    May-16-2015 7:45 AM

StringBuffer is synchronized, StringBuilder is not.

http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuffer.html
http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html


Don't want to miss updates? Please click the below button!

Follow MindStick