A-A+

以下程序段输出的结果是() public class test { public static void main(String[] args) { String str = ABCDE; str.substring(3); str.concat(XYZ); System.out.println(str ); } }

2024-04-26 18:21:47 网课题库 阅读

问题详情

以下程序段输出的结果是() 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

考点:程序,结果是,class
Copyright © 2018-2024 问答库 保留所有权利.   SiteMap  .