java System类

来源:互联网 发布:linux fork函数 编辑:程序博客网 时间:2024/05/21 08:53
package LearnCamel.lccstudy;/** * Hello world! * */public class App {    public static void main( String[] args )    {       System.out.println(System.getProperties());    //确定系统属性       System.out.println(System.nanoTime());      //返回最准确的可用系统计时器的当前值,以毫秒为单位       System.out.println(System.clearProperty("XXXX")); //移除指定键的系统属性       System.out.println(System.setProperty("XXXX", "value")); //设定指定键的值       System.gc();  //运行垃圾回收机制    }}

原创粉丝点击