# Properties类 如果需要使用Properties类在控制台打印出JVM参数,下面的代码正确的是: ## 答案 ```java public void test() { Properties properties = System.getProperties(); properties.list(System.out); } ``` ## 选项 ### B ```java public void test() { Properties properties = new Properties(); properties.list(System.class); } ``` ### C ```java public void test() { Properties properties = new Properties(); properties.print(System.out); } ``` ### D 以上都不是