这两种字符串连接模式是否消耗相同数量的内存?
//Method 1
String testString = "Test " + " string " + " content";
//Method 2
String testString = "Test ";
testString = testString + " string ";
testString = testString + " content";
我们应该避免这两种方法并使用StringBuilder
class 吗?