preface
In the world of JDK versions, Oracle always releases its new versions, and we stick with our old ones.
After using JDK7 for a long time, I finally upgraded to JDK8. Since the update, the JDK has been released every six months, with releases 9, 10, 11, 12, 13… Until March 16, when Oracle officially released Java 16. Oracle says Java 16 is now available to all developers and businesses.
Why is it updating so fast?
As kotlin, Groovy, Scala and other languages are implemented on the JVM like Java and have grown rapidly in recent years, they have threatened Java in some ways in the programming language ecosystem.
Languages need to evolve to keep up with hardware updates or meet programmer expectations. To last, Java must improve by adding new features, and changes only make sense if the new features are used. So I think that’s why the updates are so frequent.
Did you panic?
Don’t panic, because so far, most people are still using java8, or even java7.
In December 2018, The 2018 JVM Ecology Survey published by Snyk and The Java Magazine showed that 70% of users use The Oracle JDK and 21% use The OpenJDK. Java 8 accounts for 79% of users.
The 2020 JVM Ecology Survey, published in February 2020 by Snyk and The Java Magazine, shows that 34% of users use The Oracle JDK and 57% use The OpenJDK. Java 8 usage remained at more than 64 percent.
In fact, using Java8 is already very good, very self-motivated. Some companies still use 7, some even use 6. In the interview with some candidates, there are many who have not used Java8.
The reason for this is that upgrading the version is time-consuming and, most importantly, may affect the stability of the service, although Java is backward compatible, but who knows if there is a problem. In the absence of major security vulnerabilities or major performance improvements, most companies are focused on stability, and now that Java 8 meets business needs, it’s good to use it.
Do you really know Java8?
As mentioned earlier, many languages can now be run on the JVM. With Java 8, you are protecting your career as a Java programmer.
List some features:
-
Lambda expressions
-
Functional interface
-
Method references
-
Stream
-
Default and static methods for the interface
-
New time and date API
-
Optional class
-
Others include repetitive annotations, the new JS engine, Base64, and some new parallel containers
Let’s learn and grow together!
Reference:
Ke.qq.com/course/1237…
Ke.qq.com/course/1651…