我最初学习 Java 的时候,公司的大多数应用,都是基于 JDK 1.4.2.14,因此我也是从这个版本入手。搜索 ArrayList 的教程,发现诸如此类的代码:
List<User> members = new ArrayList<User>();
members.add(new User());
...
对其中的 < > 甚是不解,请教同事,才知道就是 JDK5 引进的新功能,泛型。当是时,JDK6 已经发布了。
但公司为了稳定起见,不会着急更新。直到现在,核心应用都是还是 JDK6。
后来专门花了不少精力学习 JDK5 的新特性,除了泛型,还有自动封装箱,增强 for 循环,极大的提高了生产效率,至今印象深刻。
六年过去了,Java 早已易主,而 JDK8 的发布也指日可待,这里重新整理一下 JDK5 以来,Java 主版本的新功能,不能总是过着刀耕火种,茹毛饮血的生活。
Java Version History
JDK Alpha and Beta (1995)
JDK 1.0 (January 23, 1996)
JDK 1.1 (February 19, 1997)
J2SE 1.2 (December 8, 1998)
J2SE 1.3 (May 8, 2000)
J2SE 1.4 (February 6, 2002)
J2SE 5.0 (September 30, 2004)
Java SE 6 (December 11, 2006)
Java SE 7 (July 28, 2011)
JDK 5 Tiger
New Features and Enhancements J2SE 5.0
Tiger 中的注释,第 1 部分: 向 Java 代码中添加元数据
JDK 6 Mustang
Features and Enhancements Java SE 6
Improved User Experience
Security Features and Enhancements
Integrated Web Services
Scripting Language Support (JSR223)
Enhanced Management and Serviceability
Increased Developer Productivity
Built in Apache Derby
以下来自 达内 的培训课件:
Desktop 类和 SystemTray 类
使用 JAXB2 来实现对象与 XML 之间的映射
理解 StAX
使用 Compiler API
轻量级 HttpServer
插入式注解处理 API
用 Console 开发控制台程序
嵌入式数据库 Derby
CommonAnnotations
Web 服务元数据
更简单强大的 JAX-WS
脚本语言支持
JTable 的排序和过滤
IBM Developerworks Java SE 6 新特性系列
JDK 7 Dolphin
Java SE 7 Features and Enhancements
Binary Literals
Catching Multiple Exception Types and Rethrowing Exceptions with Improved Type Checking
Underscores in Numeric Literals
中文资料