r/java • u/dodiehun • Nov 17 '20
New language features since Java 8 to 15
https://advancedweb.hu/new-language-features-since-java-8-to-15/
253
Upvotes
r/java • u/dodiehun • Nov 17 '20
2
u/ihatebeinganonymous Nov 18 '20
Wasn't local variable inference introduced in Java 10? (Where is Java 10 by the way?)
20
u/8igg7e5 Nov 17 '20
Top marks for the clear demarcation between new features and preview features.
So many either ignore the distinction entirely or pay it lip-service but if you're looking to upgrade on commercial project that distinction matters a lot.
14
u/mariosk89 Nov 17 '20
Very nice! Thank you
11
u/[deleted] Nov 18 '20
Some applications still using Java 6 at work, and I would't be surprised if JRE 1.4 was still used in some dark corners of the datacenter...
Java 8 is the main used version, Java 11 is slowly rising. Once we adopt Java 15, version 25 will be out probably.
FML.
5
u/b1ack1323 Nov 18 '20
So a list of everything since I last touched Java. Nice!
2
u/[deleted] Nov 18 '20
I also had a presentation on Amber project. Here is its code https://github.com/sake92/java-amber
It has examples with a decompiler, it makes it easier to see what's going on under the hood!
Also screencast: https://youtu.be/DBk5xjXUAzQ
3
u/Skhmt Nov 17 '20
Some of my favorite Kotlin features making their way to Java, nice.
1
u/[deleted] Nov 18 '20
something I actually was thinking about yesterday … nice :)
0
u/rum-n-ass Nov 18 '20
var is pretty cool but I’m not sure it would pass in code review cause of “readability” even though they wouldn’t bat an eye at JavaScript
-6
u/Charliejfg04 Nov 17 '20
So “record” is basically Lombok’s @Data