public class TestString 1 { public static void main(String[] args) { String str = “420”; str += 42; System.out.print(str); } } What is the output?()
- A、 42
- B、 420
- C、 462
- D、 42042
- E、 Compilation fails.
- F、 An exception is thrown at runtime.
正确答案:D
答案解析:有
微信扫一扫手机做题