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

Java认证考试

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

11.public class Commander{ 12.public static void main(String[]args){ 13.String myProp=/*insert code here*/ 14.System.out.println(myProp); 15.} 16.} and the command line: java-Dprop.custom=gobstopper Commander Which two,placed on line13,will produce the output gobstopper?()

  • A、System.load("prop.custom");
  • B、System.getenv("prop.custom");
  • C、System.property("prop.custom");
  • D、System.getProperty("prop.custom");
  • E、System.getProperties().getProperty("prop.custom");
正确答案:D,E
答案解析:
进入题库查看解析

微信扫一扫手机做题