Search This Blog

Wednesday, September 19, 2018

Avoid using string concatenation.

Use StringBuffer's append() method because the string is an unchangeable object while string concatenation creates a lot of unnecessary objects. A large number of temporary objects will slow down performance.