单选题 Java
题号 #5102385

阅读下列代码:

为保证程序能正确执行,程序中下划线处应填写的是(    )。

进入在线模考

参考答案

D

答案解析

程序中的下划线处需要填入字符数组 Starts 的长度才能确定范围以便能够随机抽取到字符数组 starts 的各个元素,Length 可以获取调用它的对象的长度。

你可能感兴趣的试题

A.public float testfun(int a, float b, float c){}
A.public float testFun(int a, float b, float c){}
A.public float testfun(int a, float b, float c){}
B.public float testfun(int c, float d){}
B.public float testFun(int c, float d){}
B.public float testfun(int c, float d){}
C.public int testfun(int a, int b){}
C.public int testFun(int a, int b){}
C.public int testfun(int a, int b){}
D.private float testfun(float a, int b, float c)(){}
D.private float testFun(float a, int b, float c)(){}
D.private float testfun(float a, int b, float c)(){}
A.static
A.static
B.abstract
B.abstract
C.protected
C.protected
D.final
D.final
A.类
A.类
B.接口
B.接口
C.抽象类
C.抽象类
D.对象
D.对象
找试题 · 找答案 · 找资料 在线模考