Calendar抽象类返回自己和Integer.TYPE和int.class

public class Calend {
public static void main(String[] args) {
Calendar cal=Calendar.getInstance();//返回Calendar对象
System.out.println(cal.getTime());//输出Mon Aug 21 17:41:18 CST 2017

System.out.println(int.class);//输出int
System.out.println(Integer.TYPE);//输出int
}
}

posted @ 2017-08-21 17:45  DavidGandy  阅读(221)  评论(0编辑  收藏  举报