Aryan PrajapatKnowledge Contributor
Which among String or String Buffer should be preferred when there are a lot of updates required to be done in the data?
Which among String or String Buffer should be preferred when there are a lot of updates required to be done in the data?
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.