string vs stringbuffer

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

showing results for - "string vs stringbuffer"
Malo
09 Feb 2018
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
Aya
15 Oct 2020
1The StringBuffer and StringBuilder class both produces mutable string objects.
2 The main difference between them is that StringBuffer is thread safe;
3 StringBuilder is not thread safe.
4
Anna
03 Sep 2018
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
Bradley
28 Aug 2020
1The StringBuffer and StringBuilder class both produces mutable string objects.
2 The main difference between them is that StringBuffer is thread safe;
3 StringBuilder is not thread safe.
4String is immutable and thread safe.
5We are using StringBuffer when we are doing parallel
6testing since it is a thread safe.
Luis
01 Jan 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.
Nicolò
27 Oct 2017
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
queries leading to this page
difference between stringbuffer and stringbuilderstringbuffer v ssteingstringbuffer vs stringbuilder c 23difference between string and stringbuilderstringbuilder is mutable or immutable in javastringbuffer and stringbuilder operations in javastring buffer and string differencestringbuilder vs stringbuffer in javastringbuilder and stringbuffer in java with exampledifference between string and stringbufferdifference between stringbuffer and stringbuilder and string in javastringbuffer vs stringbuilderstringbuffer vs stringbuilder vs stringdifference between stringbuilder and stringbuffer in javastring vs stringbuffer javastringbuffer vs stringstring vs stringbuffer vs stringbuilderdiff between stringbuffer and stringbuilderstringbuilder versus stringbufferdiff string builder and string bufferwhat are differences between string 2cstringbuffer and string builderstring 2c stringbuilder 2c stringbufferstringbuffer vs stringbuilder mutablestring 28stringbuffer 29string and stringbuffer and stringbuilder in javastring builder and stringbuffer in java explainationwhat are the difference between string and stringbufferjava string vs stringbuilder vs stringbufferstringbuilder and stringbuffer functionsstringbuilder vs stringbuffer vs stringstringbuilde javastringbuilder java vs stringbufferstringbuffer vs string vs stringbuilder 28 string concatenation in java 29difference between string stringbuffer and stringbuilder in javastringbuffer and stringbuilder are same or notstringbuffer vs stringbuilder performancestringbuffer and stringbuilder have same methodsstringbuffer in javajava stringbuilder vs stringbuffer manipulationstringbuilder vs stringbuffer in kotlinstringbuilder vs stringbuffer performance in concurrent modestring vs stringbuffer stringbuffer javastringbuffer vs stringbuilder javan string 2c stringbuffer and stringbuilder why use stringbuffer in javastringbuffer vs stringbuilder in javadifference among string stringbuffer stringbuilderstring vs string bufferstring buffer and string builder in javawhat is string builder and string buffer in javajava stringbuffer and stringbuilderwhich of the following is faster 2c stringbuilder or stringbuffer 3fdifference between stringbuilder and stringbufferdifference stringbuilder and stringbuffer in javadescribe the difference between string and stringbufferwhat is a stringbuffer vs stringbuilder in javastringbuilder stringbufferdifference between string builder and string buffer difference between string vs stringbufferstringbuffer and stringbuilder in javawhat is difference between string 2c stringbuilder 2c and stringbufferdifference between stringbuffer vs stringbuilderwhat is the difference between strings and stringbuilder or stringbuffer 3fstringbuilder v 2fs stringbufferdiff between string and stringbuffer and stringbuilder in javastringbuffer when to usejava string vs stringbufferstring vs stringbuilderdiff between string and stringbuilder in javawhat is difference between string and stringbuffer classstringbuffer vs stringbuilder thread safestringbuilder and stringbuffer javastringbuffer and stringbuilder methods in javastringbuilder and stringbuffer differencestring vs stringbuffer vs stringbuilder fastest javastring 2c stringbuffer 2c and a stringbuilderdifference between string stringbuilder and stringbufferstring builder and string differencewhy stringbuffer is immutable in javastring and string buffermethods of stringbuffer and stringbuilder class in javawhich is better stringbuffer or stringbuilderdifferences between the string and stringbuffer classes in javastringbuilder vs stringwhat is the difference between stringbuffer and stringbuilder class in javastring stringbuilder stringbufferdiff between string and stringbufferjava stringbufferdifference between string 2c stringbuilder 2c and stringbufferstringbuffer vs stringbuilder which is efficientstringbuffer and javastring builder vs string bufferwhat is stringbufferstringbuffer vs stringbuilder vs stringbufferstringbuilder and stringbuffer diffarraybuffer vs stringdiferencias stringbuffer stringbuilderstringbuilder vs stringbuffer javastring and stringbuffer differencejava stringbuilder 2c and stringbufferstring stringbuffer stringbuilderstringbuffer and stringbuilder in java exampledifference between string builder and stringbufferdifference between string buffer and string builderdiff between string and stringbuffer in javastring vs stringbuilder vs stringbufferdiff string 2fstringbuilder 2fstringbuffer stringbuffer and stringbuilderdifference between string stringbuffer and stringbuilder in java gfgjava when to use string stringbuffer stringbuilderwhat does stringbuffer dodiff bw stringbuffer and stringbuilder in javadifference between string 2c stringbuffer and stringbuilder difference between string stringbuffer stringbuilder and stringtokenizerstringbuffer or stringbuilderstring vs stringbufferwhat is the difference between stringbuffer and stringbuilderstring vs stringbuffer vs stringbuilder in javastringbuilder and stringbuffer methodsadvantage of stringbuffer and stringbuilder over stringwhen we use stringbuffer and when we use stringbuilder in javadifference string and stringbuilderdifferentiate between stringbuffer and stringbuilder stringbuffer and string differencestringbuffer how is thisstring 2c stringbuffer and stringbuilder in javastring buffer vs string builderwhat is the difference between string 2c stringbuilder and stringbuffer 3fwhat is the difference between stringbuffer and stringbuilder class 3fstring string buffer and string builderdifference between string and strinbbufferwhen to use string stringbuffer and stringbuilder in javastring stringbuffer and stringbuilderdifference betweeen stringbuffer and stringbuilderstringbuilder methods javastringbuilder and stringbuffer in javais string and stringbuffer differencedifference between string 2c stringbuffer 2c stringbuilderis string and stringbuffer differentis stringbuilder stringbufferwhy stringbuffer is better than stringdifference between string and stringbuffer and stringbuilderjava string stringbuilder stringbufferwhat is the difference between stringbuffer and stringbuilder 3fstring 2c stringbuffer 2c stringbuilder in javawhich is better stringbuilder or stringbufferdifferentiate between string and stringbuffer string vs string budfferstring buffer and string builder methodsdifference between string stringbuffer stringbuilder stringtokenizerstringbuilder vs stringbufferwhat are the differences between string and stringbuffer 3fwhat are the differences between string 2cstringbuilder and stringbuffer class 3fjava string buffer vs string builder6 what is the difference between stringbuffer and stringbuilder class 3fstring to stringbuffer conversion10 11 1 what is the difference between stringbuilder and stringbuffer 3fstring buffer and string builder vs stringdifference between the string 2cstringbuilder and stringbuffer classjava difference stringbuffer stringbuilderjava stringbuffer vs stringbuilderstringbuilder instead of stringbufferstring vs stringbuffer vs stringbuilder 22which is better in string stringbuffer and stringbuilderwhy we use stringbuffer and stringbuilder in javadifference between string and stringbuffer and stringbuilder in javastring builder and string buffer in javawhat is stringbuffer difference between string stringbuffer and stringbuilderdifference between stringbuffer and stringbuilder 3fwhich ti use among stringbuffer and stringbuilderdifferentiate string with stringbufferclass list out the methods available with string class and explain any five with proper java code in detail in programming in javastringbuffer and stringbuilder difference in javastringbuilder vs stringbuffer thread safedifference string stringbuffer and stringbuilderdiff c3 a9rence entre string 2c stringbuffer et stringbuilderstringbuffer vs string vs stringbuilderdifferentiate string with stringbufferclass in programming in javaprograms on stringbuilder and stringbufffer in java 27should i use stringbuffer or stringbuilderstringbuilder string 2c stringbuffer13 difference between string 2c stringbuilder 2c and stringbufferwhat is the difference between stringbuilder and stringbuffer 3fdifferentiate between stringbuffer and stringbuilderstring and bytebuffer differencestringbuffer stringbuilder string differencestringbuffe or stringstringbuilder vs 2b javawhat is the difference between stringbuffer and stringbuilder 3fstring string builder and string bufferdifference between string 2c stringbuffer and stringbuilderwhy use stringbufferdifference between string and stringbuffer in c 23strignbuilder string bufferstringbuilder stringbuffer string differencestringbuilder vs stringbuffer examplejava stringbuilder vs stringbuffer vs stringdifference between stringbuffer and string classes 3fstring and stringbufferwhat is a difference between string and stringbufferstring buffer and string builderwhat is the difference between string and stringbuffer 3fjava stringbuilder examplewhat is the difference between string stringbuffer and stringbuilder classes in javadifference between stringbuffer and stringbuilder in javadifference between stringbuilder and stringbuffer javawhat is the difference between string 2c stringbuilder 2c and stringbuffer in java 3fwhat is the difference between string 2c stringbuffer and stringbuilder 3fstring builder and bufferis stringbuider similar to stringbufferfunctionality of stringbuffer and stringbuilderwhat is difference between string stringbuffer and stringbuilder18 09difference between string 2c stringbuilder 2c and stringbufferstringbuffer vs stringbuilder with example101 what is the difference between stringbuffer and string 3fstring vs stringbuilder vs bufferstringbuilde vs stringbufferdifference stringbuffer and stringbuilder in javadifference between string and stringbuffer in javawhat is difference between stringbuffer and stringbuilder in javastring and string buffer in javastring builder and string bufferstringbuilder vs stringbuffer methstring stringbuffer and stringbuilder classes in javawhat is string and stringbuffer classjava stringbuffer vs string builderstring buffer or builder for long output stringjava string and stringbufferexplain string 2c string buffer 2c stringbuilder with examplewhen to use stringbuffer vs stringbuilderwhat is the difference between string stringbuffer and stringbuilderstring vs stringbuffer in javawhat is the difference between stringbuilder and stringbuffermethods of stringbuffer and stringbuilder string 2c stringbuffer and stringbuilder difference between string and stringbuffer and stringbuilder in java in tabular formkotlin stringbuilder vs stringbufferstring or stringbufferstringbuffer vs stringbuilder vs string in javadifference between string and stringbuffer which is memory efficientstringbuilder or stringbufferdescribe the difference between string and stringbuffer 3fstring vs stringbuffer vs stringbuilder in java javatpointdifference in stringbuffer and string builderstring vs stringbuilder vs stringbuffer in javastringbuffer and stringjava strings vs stringbuilderdifference between string buffer and string builder through examplewhat is the difference between stringbuffer and stringwhy use stringbuffer instead of stringstringbuilder and stringbufferbuilder and stringbuffer in javadifference between stringbuffer and stringbuilder in java 3fwhat is stringbuilder and stringbuffer 3fjava stringbuilder vs stringbufferstring stringbuilder and stringbufferstring vs stringbuffer