StringBuilder and StringBuffer

Total Post:145

Points:1019
Java  String 
 1232  View(s)
Ratings:
Rate this:
What is the main difference between StringBuffer and StringBuilder? Is there any performance issues when deciding on any one of these?
  1. Post:397

    Points:3117
    Re: StringBuilder and StringBuffer

    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

Answer