Differences between String, StringBuffer and StringBuilder in Java


  1. String is an immutable class while StringBuilder & StringBuffer are mutable classes. StringBuffer is synchronized while StringBuilder is not.

    Below link can be useful to find more differences between String, StringBuffer & StringBuilder

    Difference between String, StringBuffer and StringBuilder


  2. This is very nice article about Java String vs StringBuffer .
    thanks for this nice post.


Post a Comment

Popular posts from this blog

How to get consumer count using JMX API in ActiveMQ