小关注了一下JSR-334
从Joe Dacy的blog里看来的:Project Coin: JSR 334 Approved 。 特性看起来还不错,当然都是些小改动,所以这个JSR的主题也很谦卑:Small Enhancements to the JavaTM Programming Language,估计要到JDK 7了(这是当然…)
- Strings in switch
- Binary integral literals and underscores in numeric literals
- Multi-catch and more precise rethrow
- Improved Type Inference for Generic Instance Creation (diamond)
- try-with-resources statement
- Simplified Varargs Method Invocation
唉,有些特性其他语言都有了。Java最近的发展是比较迟缓呐… 是以为记,凑数…