What are some of the main differences between Java 7 and Java 8?

I wanted to know what makes java 8 different from java 7. Why should I / should 'nt I switch to java 8 from java 7? Please list the differences.

+5
source share
1 answer

JDK 8 has many new features, including improvements to collections, new security features, and even additions to the Java programming language (for example, Lambda expressions ). It's best to take a look at What's New in JDK 8 , as there are too many to list cleanly here.

As for why you might not want to update immediately, here is the JDK 8 Compatibility Guide , which lists incompatibilities between JDK 7 and 8.

+8
source

Source: https://habr.com/ru/post/1205416/


All Articles