以下Java程序代码中,能正确创建数组的是
A.int myArray[];myArray[]=new int[5];
B.int myArray[]=new my(5);
C.int[]myArray={1,2,3,4,5};
D.int myArray[5]={1,2,3,4,5};
正确答案是C
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/438219.html
上一篇:下列事项属于要约邀请的有( )
下一篇:Please make sure that the terms and conditions in the L/C are exactly the ______ as those in our contract.