试题详情
- 单项选择题 Given classes defined in two different files: 1. package util; 2. public class BitUtils { 3. public static void process(byte[]) { /* more code here */ } 4. } 1. package app; 2. public class SomeApp { 3. public static void main(String[] args) { 4. byte[] bytes = new byte[256]; 5. // insert code here 6. } 7. } What is required at line 5 in class SomeApp to use the process method of BitUtils?()
A、 process(bytes);
B、 BitUtils.process(bytes);
C、 util.BitUtils.process(bytes);
D、 SomeApp cannot use methods in BitUtils.
E、 import util.BitUtils.*; process(bytes);
- C
关注下方微信公众号,在线模考后查看
热门试题
- public class&e
- javax.swing.JPopMenu
- What is th
- //point X&ensp
- 用extends关键字创建自己的异常类。
- A developer&en
- public class&e
- 1.class SuperF
- public static&
- 以下哪些jvm的垃圾回收方式采用的是复制
- public class&e
- 为了区分重载多态中同名的不同方法,要求(
- Which the basi
- System.out.println(M
- What is th
- Which statemen
- 下列关于构造函数的描述正确的是()。
- Click the
- Given the&ensp
- 表格约束的“anchor”属性有什么作用