StringBuffer Vs StringBuilder

1). StringBuilder born in Java 5)
2). StringBuilder automatically expands as needed
3). its methods are not synchronized. So, it has better performance.
4). StringBuilder is Asynchronous hence fast & efficient
5). Drawback of StringBuilder is , it is not Thread-Safe.
6). StringBuilder is use for Single-Threaded programs

1). StringBuffer than StringBuilder
2). StringBuffer is Thread-sage
3). StringBuffer is synchronized
4). StringBuffer thread safe so it is slow
5). StringBuffer is use for Multi-Threaded programs


🙂 Hey , Friend Write Your Comment 🙂



About rajkirpal

i am a software engineer. and i have decent knowledge about java technologies like ANDROID, Servlet, Jsp, Struts, Hibernet, Spring, J2ME, Java Script, Ajax, JQuery, CSS. Further i am Preparing Easy understandable materials/documents upon the same java technologies and developing project in core java , advanced java and j2me , ANDROID as per the requirements Also designing the web sites and logos Thank You.
This entry was posted in J2SE. Bookmark the permalink.

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s