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?
(Choose two.)
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");
看不懂什么意思!
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?
(Choose two.)
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");
看不懂什么意思!
解决方案 »
- JFrame窗体怎么嵌入一个cmd命令窗体?
- JTable中的DefaultTableColumnModel的问题
- 如何将actin生成的文件保存到客户端
- 关于protected访问权限的疑惑!
- 关于Java Reflection of Generics 的一些问题
- 连数据库中的问题
- 请教一个基本类的问题??
- 我需要在我的程序里建立100多个线程,几百万个对象,不知性能会怎么样?
- jsp页面中传递中文参数给C++函数出现乱码问题
- 如何把一个int型的数转化成String?
- 程序运行时出现异常java.lang.OutOfMemoryError: Java heap space,求高手解决
- 小弟不解 求师长帮忙看一下这段java代码
set a system property