JDK 1.6和1.7中的新功能 [英] New features in JDK 1.6 and 1.7

查看:104
本文介绍了JDK 1.6和1.7中的新功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常了解JDK 1.5。众所周知,除了新的API(例如AtomicInteger)之外,还有一些主要的语言变化,例如提供对泛型的支持,添加枚举,私有自动装箱和自动取消装箱等等。

I know JDK 1.5 pretty well. As we all know, besides new API (such as AtomicInteger, for example), there were major language changes such as providing support for generic, adding enum, prividing auto-boxing and auto-unboxing and so on.

我想找到一些资源,这些资源最好有JDK 1.6和1.7中新功能的简短描述(对于 big 新功能,我更喜欢阅读完整的解释)。至于API的变化,只有主要的变化是可以接受的,并且对新的变更进行简短的审查(例如,如果我记得写有从控制台读取字符的新方法)。就功能而言,我想找到完整列表(这些对象分配的变化,现在JVM实际上可以在堆栈上创建对象以进行优化,例如,但我不知道的详细信息)。

I want to find some resources that have preferably short description of new features in JDK 1.6 and 1.7 (for big new features I prefer to read complete explanations). As far changes of API only major changes is acceptable and short review of new one (if I recall write there is new way to read characters from the console, for example). As far as features goes I want to find complete list (such changes in the allocation of the objects, now JVM can actually creates objects on the stack for optimization purposes, for example, but I don't know the details).

有关JDK 1.6
核心Java技术特性 Java™SE 6与J2SE 5.0的兼容性。对于JDK 1.7 使用Java SE 7异常更改,但它是不完整的列表。

For JDK 1.6 Core Java Technology Features and Java™ SE 6 compatibility with J2SE 5.0. For JDK 1.7 Working with Java SE 7 Exception Changes, but it is incomplete list.

推荐答案

JDK 1.6
兼容性 http://www.oracle.com/technetwork/java/javase/compatibility-137541.html

核心Java技术特性 http://www.oracle.com/technetwork/articles/java/javase6 -build39-139826.html
HTTP://java.sun。 com / developer / technicalArticles / J2SE / Desktop / JavaSE6_build39.html

Core Java Technology Features http://www.oracle.com/technetwork/articles/java/javase6-build39-139826.html http://java.sun.com/developer/technicalArticles/J2SE/Desktop/JavaSE6_build39.html

Java SE 6性能白皮书 http://www.oracle.com/technetwork/java/6-performance-137236.html

Java SE 6 Performance White Paper http://www.oracle.com/technetwork/java/6-performance-137236.html

快速说明,java.util.ArrayList的实现已更改(由于bug 6260652 )。

Quick note, implementation of the java.util.ArrayList was changed (due to bug 6260652).

JDK 1.7

Java SE 7和JDK 7兼容性 http://www.oracle .com / technetwork / java / javase / compatibility-417013.html (存在一些行为不兼容性)。

Java SE 7 and JDK 7 Compatibility http://www.oracle.com/technetwork/java/javase/compatibility-417013.html (there are some behavioral incompatibilities).

Java SE 7功能和增强功能 http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html

Java SE 7 Features and Enhancements http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html

了解Java 7的新功能 http://radar.oreilly.com/2011/09/java7-features.html (另请参阅 http://docs.oracle.com/javase/7/docs/technotes/guides/language/type-in​​ference-generic-instance-creation.html

(杂项)JDK 7:新接口,类,枚举和方法 http://marxsoftware.blogspot.com/2011/03/jdk-7-new-interfaces-classes-enums-and.html

(Misc) JDK 7: New Interfaces, Classes, Enums, and Methods http://marxsoftware.blogspot.com/2011/03/jdk-7-new-interfaces-classes-enums-and.html

这篇关于JDK 1.6和1.7中的新功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆