Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

difference between stringbuffer and stringbuilder

StringBuffer:
1. StringBuffer class is synchronized
2. It is thread-safe
3. It is slower than StringBuilder

StringBuilder:
1. StringBuilder class is not synchronized
2. It is not thread-safe
3. It is faster than StringBuffer
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #difference #stringbuffer #stringbuilder
ADD COMMENT
Topic
Name
2+7 =