Here get all the differences between StringBuffer and StringBuilder In Java.
String Buffer
|
String Builder
|
String Buffer is synchronized.
|
String Builder is not synchronized.
|
String Buffer is thread-safe.
|
String Builder is not thread-safe.
|
Its performance is slow due to thread-safe property.
|
Its performance is fast because it is not thread-safe.
|
String Buffer is mutable.
|
String Builder is mutable.
|
String Buffer is stored in heap.
|
String Builder is stored in heap.
|
Blog Author - Pushkar Khosla,
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.
This blog is all about to learn Core Java ,Interview Programs and Coding tricks to polish your Java Knowledge. If you like the content of this blog please share this with your friends.
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.
This blog is all about to learn Core Java ,Interview Programs and Coding tricks to polish your Java Knowledge. If you like the content of this blog please share this with your friends.
Java I/O Tutorial

No comments:
Post a Comment