Webmaster Forums - Website and SEO Help

Web Development and Design => Database, Server, Coding and Website Administration => Topic started by: sinelogixtech on November 21, 2017, 05:25:16 AM

Title: Differentiate between StringBuffer and StringBuilder in Java programming.
Post by: sinelogixtech on November 21, 2017, 05:25:16 AM
Differentiate between StringBuffer and StringBuilder in Java programming.
Title: Re: Differentiate between StringBuffer and StringBuilder in Java programming.
Post by: Adrian on August 31, 2018, 04:08:02 AM
There are many differences between the two, but the biggest one is StringBuffer is thread safe while the StringBuilder is not. This is why Since Java5 StringBuffer is used more.
Title: Re: Differentiate between StringBuffer and StringBuilder in Java programming.
Post by: 12Three on March 03, 2019, 11:15:29 PM
StringBuffer is mutable means one can change the value of the object . The object created through StringBuffer is stored in the heap. StringBuffer has the same methods as the StringBuilder , but each method in StringBuffer is synchronized that is StringBuffer is thread safe .
Title: Re: Differentiate between StringBuffer and StringBuilder in Java programming.
Post by: RH-Calvin on March 05, 2019, 01:35:34 AM
StringBuffer is mutable means one can change the value of the object . The object created through StringBuffer is stored in the heap. StringBuffer has the same methods as the StringBuilder , but each method in StringBuffer is synchronized that is StringBuffer is thread safe.