java基础语法
2019-07-05 本文已影响0人
huxt
1.构造器



2.静态属性
Person.country ="B城" ;通过类名直接修改,其他引用也会变化




3.代码块

4.构造方法私有化

5.对象数组

6.内部类


7.继承






8.接口



9.instanceof关键字




10.工厂类

11.代理类

12.多线程





13.泛型




14.StringBuffer



15.Runtime

16.System

17.日期类

运行结果:当前日期为:Tue Jul 09 09:34:53 CST 2019

运行结果:




18.Random

19.DecimalFormat

20.BigInteger

21.Arrays

22.比较器 ----Comparable、Comparator
一般与Collections.sort()方法一起使用。



Comparable


23.Timer


24.file文件类





