创建了几个String对象?
Given:
11. public String makinStrings() {
12. String s = “Fred47”;
13. s = s + “47”;
14. s = s.substring(2, 5);
15. s = s.toUpperCase();
16. return s.toString();
17. }
How many String objects will be created when this method is invoked?
我觉得是5个,对不?^_^