Q&A
Ask and answer questions to make information more available to wider audiences.
Derek Bingam @bingamderek   30, Jun 2023 12:00 AM
String or String Buffer
Which among String or String Buffer should be preferred when there are a lot of updates required to be done in the data?
answers 1
 
Answer 1
Noah Antills @noahantills   07, Jul 2023 02:19 PM
Because StringBuilder is quicker than StringBuffer, it is advised to utilize it wherever possible. However, StringBuffer objects are the best choice if thread safety is required.