Java 7 和 Java 8 之间的一些主要区别是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26542030/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What are some of the major differences between Java 7 and Java 8?
提问by Piyush Ranjan
I wanted to know what makes java 8 different from java 7. Why should/should'nt I upgrade to java 8 from java 7? Please list the differences.
我想知道是什么让 java 8 与 java 7 不同。为什么我应该/不应该从 java 7 升级到 java 8?请列出差异。
采纳答案by juh
There are many new features in JDK 8, including enhancements to Collections, new security features, and even additions to the Java programming language (e.g., Lambda expressions). Your best bet is to take a look at What's New in JDK 8as there are too many to list cleanly here.
JDK 8 中有许多新特性,包括对集合的增强、新的安全特性,甚至是对 Java 编程语言的补充(例如,Lambda 表达式)。最好的办法是查看JDK 8 中的新增功能,因为这里有太多内容无法一一列出。
As for why you might not want to update immediately, here is the Compatibility Guide for JDK 8, which lists incompatibilities between JDKs 7 and 8.