string builder vs string buffer

Solutions on MaxInterview for string builder vs string buffer by the best coders in the world

showing results for - "string builder vs string buffer"
Riyad
22 Sep 2016
1String vs StringBuilder vs StringBuffer
2
3                STRING          STRINGBUFFER       STRINGBUILDER
4
5Storage         String Pool     Heap                Heap
6Modifiable      Immutable   	Mutable           	Mutable
7Thread Safe     YES             YES                 NO
8Performance     FAST            VERY SLOW           FAST
Élisabeth
10 Sep 2016
1The main similarity between String and StringBuffer class is that both are
2thread safe. 
3The main difference is that String is immutable; StringBuffer is mutable.
4
5
Auguste
24 May 2020
1The StringBuffer and StringBuilder 
2class both produces mutable string objects.
3 The main difference between 
4 them is that StringBuffer is thread safe;
5 StringBuilder is not thread safe.
Federico
15 Feb 2020
1String is immutable and thread safe
2String builder mutable and not thread safe
Cameron
14 Jun 2016
1String vs StringBuilder vs StringBuffer:
2String: Immutable version char sequences
3StringBuilder: mutable version char sequences,
4not synchronized
5StringBuffer: mutable version char sequences,
6synchronized , thread-safe, slow
7String str = new String("a")
8StringBuilder s2 = new StringBuilder("B") // MUTABLE
9StringBuffer s2 = new StringBuffer("c") // Synchronized 
Clelia
06 Apr 2019
1They both mutable, they are exactly same but
2String buffer is thread safe so it runs slower
3than String builder.
4We are using StringBuffer when we are doing parallel
5testing since it is a thread safe.
queries leading to this page
what is string builder and string buffer in javastring stringbuilder and stringbufferdifference string and stringbuilderstringbuffer vs stringbuilder vs stringbufferwhat is the difference between string 2c stringbuilder and stringbuffer 3fstringbuffer and javais string and stringbuffer different18 09difference between string 2c stringbuilder 2c and stringbufferjava string vs stringbuilder vs stringbufferc 23 string vs stringbuilderstring buffer vs string builder in javastring vs stringbuilder vs stringbufferstring stringbuilder stringbufferdifference beteween strinf buffer and stringbuilderstring buffer and string builder in java methodswhat is the difference between string builder and string buffer in java why use stringbuffer instead of stringstring builder and string buffer and string in javastring builder and bufferstringbuffer vs stringbuilder vs string in javastring buffer and atring builder differencestring vs string budfferstring buffer and string builder methods in javastring string buffer and string builder in javastringbuilder stringbuffer string differencedifference among string stringbuffer stringbuilderstring builder and string buffer differencesstring buffer and string builder methodsdifference between string stringbuffer and stringbuilderstring string builder and string buffer examplesdifference between string and strinbbufferstring vs stringbuffer vs stringbuilderstring vs stringbuilder javastring buffer vs string builder in androidstring vs stringbuilder vs stringbuffer in javastringbuffer vs stringbuilder mutablestyring builder 2f string buffer what is the difference between string and stringbuilderstringbuilder vs stringbuffer javastring buffer and string builder defference in javastring vs stringbuilder in c 23string to stringbuffer conversionexplain string 2c string buffer 2c stringbuilder with exampledifference between string stringbuffer stringbuilder stringtokenizerstring vs stringbuilder vs stringcontentjava stringbuilder and string bufferstring 2c string buffer and string builder differences and methods present in the classstring vs string buffer vs string builderstringbuffer and stringbuilderdifference between the string 2cstringbuilder and stringbuffer classwhat is difference between string stringbuffer and stringbuilderc 23 stringbuilder vs stringstring buffer 2cstring builder 2cstring tokenizerstring vs stringbuilder vs bufferstring buffer vs string builder vs stringstringbuilder vs stringbuffer in kotlinstringbuilder stringbufferjava string buffer and string builder in detaildifference string buffer and string builderstring vs string bufferdiff between string and stringbufferstring buffer and string builderstring vs stringbuilder c 23 6string vs stringbuilderstringbuilder and stringbuffer functionsstring and stringbuilder in c 23stringbuilder and stringbuffer differencewhat is the difference between string stringbuffer and stringbuilderwhy use stringbufferwhat is the difference between stringbuffer and stringjava stringbuffer and stringbuilderstring vs stringbuffer vs stringbuilder in javastringbuffer vs stringbuilderstring vs stringbuffer vs stringbuilder 22what is stringbufferwhat is difference between string buffer and string builderwhat is the difference between string 2c string builder string bufferarraybuffer vs stringwhat is the difference between strings and stringbuilder or stringbuffer 3fstring buffer and string builder in java youtubestring builder vs string buffer class in javastring and string buffer and string builder in javastringbuffe or stringstring buffer and builder 5cwhat is the difference between stringbuffer and stringbuilder 3fstrring builder string bufferdifference between string stringbuffer and stringbuilder in java gfgstring buffer string builderstringjoiner vs stringbuilderwhen to use string buffer and string builderstringbuilder immutablethe difference between the string builder and bufferuse of string buffer and string builderstring builder vs stringstring builder vs string buffer classwhat is the difference between string 2c stringbuffer and stringbuilder 3fstring and string bufferdiffernce between string string buffer and atring builderdifference between string builder and string bufferwhat is difference between stringbuffer and stringbuilder in javawhen to use stringbuilder vs stringstring buffer vs string builder jsdescribe the difference between string and stringbuffer 3fjava stringbuilder vs stringbuffer manipulationdifference in stringbuffer and string builderstring vs stringbuilder java examplestringbuilder vs stringbuffer thread safewhat is stringbuilder and stringbuffer 3fstringbuilder and string bufferdifference between string and stringbuffer in javastring builder vs string bufferstring buffer and builderwhat does stringbuffer dostringbuffer vs stringbuilder c 23difference between string buffer and string builderwhat is stringbuffer which is better stringbuilder or stringbufferdiference string buffer and string builderstringbuilder vs 2awhat is difference between string 2c stringbuilder 2c and stringbufferwhat are the differences between string 2cstringbuilder and stringbuffer class 3fstringbuilder java vs stringbufferadvantage of stringbuffer and stringbuilder over stringstring buffer vs builderwhat is difference between string and stringbuffer classstringbuilder and stringbufferstring buffer vs string builder java6 what is the difference between stringbuffer and stringbuilder class 3fstring builder and string buffer javawhat is difference between string 2c string buffer and string builderdifference between string buffer and string builder through examplestringbuilder vs stringbuffer vs stringstring buffer and string builder vs stringwhen to use stringbuffer vs stringbuilderdifference between stringbuffer and string classes 3fdoes a stringbuilder take up more space than a string in javastring and string builderstring buffer string builder and string in javadifference between string and stringbuffer and stringbuilder in javastringbuffer and string differencestring 2c stringbuilder 2c stringbufferstringbuffer vs stringbuilder javawhat are the difference between string and stringbufferdiff between string and stringbuilder in javastringbuffer vs stringbuilder which is efficientjava string buffer and string builderwhat is the difference between stringbuffer and stringbuilderwhat is the difference between string buffer and string builderstringbuffer and stringbuilder difference in javastring vs stringbuffer javastringbuilde vs stringbufferdiff between string and stringbuffer and stringbuilder in javastringbuilder vs stringbuffer methwhat is the difference between stringbuilder and stringbufferjava string buffer vs string builderstring builder and string buffer in javadiff c3 a9rence entre string 2c stringbuffer et stringbuilderstringbuilder vs stringbuffer in javastringbuilder or stringbufferstring buffer and string builder are thraed safedifferentiate between stringbuffer and stringbuilder string string buffer and string builderstring buffer vs string builderdifferentiate string 2c string buffer and string builder13 difference between string 2c stringbuilder 2c and stringbufferstringbuffer v ssteingstring builder and string bufferstringbuffer how is this string buffer and string builderstringbuilder vs stringbufferwhat is the difference between string builder and string bufferis string and stringbuffer differencediff bw stringbuffer and stringbuilder in javastringbuffer vs string vs stringbuilder 28 string concatenation in java 29stringbuilder and stringbuffer in javastrignbuilder string bufferjava string and stringbufferwhen to use string stringbuffer and stringbuilder in javadifference between string buffer and string builder and string in javastring buffer and string builder differencestring vs stringbuffer in javashould i use stringbuffer or stringbuilderwhat is string buffer and string builderdiff string 2fstringbuilder 2fstringbuffer stringbuffer and stringstringbuffer vs stringbuilder in javastringbuilder versus stringbufferstring 2c string buffer 2c string builder stringbuffer and stringbuilder are same or notstring vs stringbuilder c 23stringbuffer vs stringstring string builder and string bufferdifferentiate between stringbuffer and stringbuilderstringbuffer vs string vs stringbuilderstring buffer vs stringbuilderdifference between stringbuffer and stringbuilderdifference between string builder and string buffer which is better stringbuffer or stringbuilderdifference between string and stringbuffer and stringbuilderstringbuffer vs stringbuilder vs stringstring stringbuffer and stringbuilderstring vs stringbuffer string builder and buffer javadifference between string and stringbufferstring 2c stringbuffer 2c and a stringbuilderstring builder string formatter and string bufferdiff between stringbuffer and stringbuilderstringbuffer when to usedifference stringbuffer and stringbuilder in javawhat is the difference between stringbuilder and stringbuffer 3fdifference between stringbuffer and stringbuilder 3fdstring buffer and string builderstringbuffer vs stringbuilder thread safestringbuilder vs stringbuffer examplejava stringbuffer vs stringbuilderstringbuilder instead of stringbufferdifference between stringbuffer and stringbuilder in javajava stringbuilder vs stringbufferstringbuffer vs stringbuilder with examplestringbuilder and stringbuffer methodsdifference between stringbuilder and string bufferis stringbuilder stringbufferdescribe the difference between string and stringbufferstring buffer and string builder in javastring vs stringbufferstring 28stringbuffer 29difference between stringbuffer vs stringbuilderdifference between stringbuffer and stringbuilder in java 3fstring builder buffer example javastring builder and string differencestring builder string bufferstrng builder string 2c string bufferstring vs string builderwhy stringbuffer is immutable in javabytes buffer vs strings builderstring vs string builder vs string bufferjava string buffer vs builderstringbuilder vs bufferdifference between stringbuilder and stringbuffer in javastring string buffer and string builder differencewhat is the difference between stringbuffer and stringbuilder class 3fdiff between string and stringbuffer in javajava strings vs stringbuilderjava string vs stringbufferstring buffer vs builder methodstringbuilder and stringbuffer in java with examplestringbuilder vs stringstring builder vs stringsstringbuilder and stringbuffer diffjava stringbuilder vs stringbuffer vs stringwhat is string string buffer and string builder 2b vs stringbuilderwhich is fatsres string builder or string buffer 3fwhat is string builder string formatter and string bufferstringbuilder string 2c stringbufferdifference between string and stringbuilderdifference between string 2c stringbuilder 2c and stringbufferstringbuilder vs stringjoinerwhat is a difference between string and stringbufferdifference between string builder and stringbufferdifference between string 2c stringbuffer and stringbuilder string and stringbufferwhen to use string string buffer and string builder in javastringbuilder and buffer methods in javastring builder and string buffer collectiondifference between stringbuilder and stringbufferstring vs stringbuilder 2b netwhat is string and stringbuffer classstring or stringbufferstringbuilder v 2fs stringbufferabout string and string buffer string builder in javawhat is a stringbuffer vs stringbuilder in javastring builder and string buffer methods in javastring builder vs string buffer