STRINGBUILDER AND STRINGBUFFER

ezra heywood

Total Post:145

Points:1019
Posted by  ezra heywood
Java  String 
 921  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. Mayank Tripathi

    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

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!