Java7(过渡性)
1、二进制数字表达式
2、使用下划线堆数值进行分割表达(编译器级别的特性)
3、switch语句支持String变量
就是hashCode方法
Switch支持byte,short,char,int以及对应的包装类(自动拆箱)
枚举(ordinal方法)
String(hashCode方法,返回是int类型)
4、Objects类,ThreadLocalRandom类
5、泛型的菱形语法
6、堆污染和@SafeVarargs
7、同时捕获多个异常处理
8、增强throw语句
9、try-switch-resourcse 语句
10、NIO2(Files,Path, Paths)