可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

11. public class Co


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 line 13, 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”);
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值

若a=5,b=3,c=4,逻辑表达式!(a+b)&;&;!c的值为()A0B-1C1D2

2、11. public static v

11. public static void main(String[] args) { 12. Object obj = new Object() { ...

3、class Super { public

class Super { public int getLenght() { return 4; } } public class Sub extends&...

4、AMPS属于()。

AMPS属于()。A1GB2GC3GD4G

5、cAMP(cyclic AMP)

cAMP(cyclic AMP)

6、1. public class a&#

1. public class a { 2. public void method1() { 3. try { 4. B b=new ...