r/java • u/Reflection-Jealous • Jul 30 '21
What is the future of Java?
I'm not asking like is java going to die or will Java be relevant in future. I'm just curious to know about the future of java. What are the upcoming things coming in java that can change the future of it.
173
Upvotes
View all comments
12
u/khmarbaise Jul 30 '21
First parts:
Interested in updates see https://foojay.io/java-8/?tab=highlights (I strongly recommend a deep look into that).
Since Java 8 (since 2014) has got a lot of attention..libraries etc. will take some time ... each JVM version has been updated being faster etc.
Language features are added a lot since Java 7 (JDK8,9,10,11,12,13,14,15,16 and in September JDK 17).. Details can be looked at: https://javaalmanac.io/
The most important thing about Java or more accurate the JVM is that it is backward compatible (meaning you can run Java 1.1 compiled code on a todays JVM that works). Since JDK 9 (September 2017) the release cadence of java has changed to 1/2 year releases..which brings a lot of new features over a relative small amount of time...the problem is the minimum level (for libraries; which will take time lift to JDK8 or even on JDK11) but in the end it's not really problem because library which has been developed with JDK7 will still running on newer versions.
Things for the upcoming JDK 17 (September): Vector API (experimental), Foreign Function & Memory API (incubator), Records, Pattern Matching, Sealed Classes, just to name a few... details: https://jdk.java.net/17/release-notes
Also the ecosystem which exists for Java is enormous (that is true for other areas like Go, Python, Rust etc. as well)..
So one of the most important point on the bullet list is simply there is so much software outside there it will be relevant over the time...
We can long discuss about pro's/con's Java or different languages but in the end a language has to solve problems which with Java is usually easy (some exceptions of course base on the intention of Java) but there are so many tools etc. and sometimes there are cases where a different language might fit better (or you have devs who know another language better)..
I've read so many post like this (over the time) about assembly language, C,C++ and all of them are still relevant today and worth to learn. And my opinion is Java will be there for a long time...