public String makinStrings() { String s = “Fred”; s = s + “47”; s = s.substring(2, 5); s = s.toUpperCase(); return s.toString(); } How many String objects will be created when this method is invoked?()
- A、 1
- B、 2
- C、 3
- D、 4
- E、 5
- F、 6
正确答案:C
答案解析:有
微信扫一扫手机做题