A-A+
以下程序段输出的结果是() public class test { public static void main(String[] args) { String str = ABCDE; str.substring(3); str.concat(XYZ); System.out.println(str ); } }
问题详情
以下程序段输出的结果是() public class test { public static void main(String[] args) { String str = "ABCDE"; str.substring(3); str.concat("XYZ"); System.out.println(str ); } }
A.DE
B.DEXYZ
C.ABCDE
D.CDEXYZ
参考答案
D