刚刚下载了jdk7和java tutorial,读了下release notes,java语言变化不算大,主要是以下:
Binary Literals
Strings in switch Statements
The try-with-resources Statement
Catching Multiple Exception Types and Rethrowing Exceptions with Improved Type Checking
Underscores in Numeric Literals
Type Inference for Generic Instance Creation
Improved Compiler Warnings and Errors When Using Non-Reifiable Formal Parameters with Varargs Methods
感觉应该是简单的语法糖,有时间可以考虑下起编译器处理方式。