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()方法进行回收。
上一篇:Java基础之小数、整数常用操作
System.out::println解读个人总结:首先调用System里的Out类掉用plintln方法,会有一个参数传进去,就是foreach的其中一个,
今日头条号:搜索 "JavaLeader" (欢迎大家关注支持,头条更精彩)java资源分享总群(六) :
文章目录System类常见方法和案例1. exit 退出当前程序2. arraycopy:复制数组元素,比较适合底层调用,一般使用3. currentTimeMille
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M