多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Given classes defined in two different files: 1.package util; 2.public class BitUtils{ 3.private static void process(byte[]b){} 4.} 1.package app; 2.public class SomeApp{ 3.public static void main(String[]args){ 4.byte[]bytes=newbyte[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、app.BitUtils.process(bytes);
  • D、util.BitUtils.process(bytes);
  • E、importutil.BitUtils.*;process(bytes);
  • F、SomeApp cannot use the process method in BitUtils.
正确答案:F
答案解析:
进入题库查看解析

微信扫一扫手机做题