System.getProperties().list(System.out) 列出java所有環境變量 也可以System.getProperties(\\\\\\\"環境變量的key\\\\\\\")
system.exit(0); 表示程序無條件退出
system.gc(); //調用攔擊回收器
如:Person p = new Person
p=null;
此時就可以執行System.gc();
調用finalize()方法進行回收。
System.getProperties().list(System.out) 列出java所有環境變量 也可以System.getProperties(\\\\\\\"環境變量的key\\\\\\\")
system.exit(0); 表示程序無條件退出
system.gc(); //調用攔擊回收器
如:Person p = new Person
p=null;
此時就可以執行System.gc();
調用finalize()方法進行回收。