![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVASE-常用类
LG代码O
这个作者很懒,什么都没留下…
展开
-
JAVA静态方法能被继承重写吗?
能继承单不能重写public class A { static void show(){ System.out.println("静态"); }}class B extends A{ public static void main(String[] args) { B b=new B(); B.show(); ...原创 2019-08-18 19:17:38 · 575 阅读 · 1 评论 -
JAVA计算天数差
public class DateUtils { /** * 日期转格式字符串 * @param date Date * @param str 时间格式 * @return String */ public static String timeConversion(Date date,String str){ Sim...原创 2019-08-12 10:32:43 · 785 阅读 · 1 评论 -
获取JAVA虚拟机运行CPU和内存信息
public class RuntimeUtils { /** * 获取系统运行时信息 */ public static void getSystemOperationInformation() { //获取当前程序运行时 Runtime runtime = Runtime.getRuntime(); //打印处理...原创 2019-08-12 10:40:41 · 604 阅读 · 0 评论