MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/b2zas5/java_12_released/eiyhrjy/?context=3
r/java • u/kedarjoshi • Mar 19 '19
98 comments sorted by
View all comments
7
Is there anything interesting in the new version, everybody? (I'm using OpenJDK 8, poor me...)
5 u/bmrobin Mar 20 '19 there's an interesting new switch expression. you can write the same switch/case for assignment or return values, only more concisely and as an expression 5 u/dpash Mar 20 '19 Although it's not enabled by default. You need a command line argument for both javac and java. 2 u/bmrobin Mar 20 '19 ah good catch, i didn't see that.
5
there's an interesting new switch expression. you can write the same switch/case for assignment or return values, only more concisely and as an expression
switch
5 u/dpash Mar 20 '19 Although it's not enabled by default. You need a command line argument for both javac and java. 2 u/bmrobin Mar 20 '19 ah good catch, i didn't see that.
Although it's not enabled by default. You need a command line argument for both javac and java.
javac
java
2 u/bmrobin Mar 20 '19 ah good catch, i didn't see that.
2
ah good catch, i didn't see that.
7
u/catmewo Mar 20 '19
Is there anything interesting in the new version, everybody? (I'm using OpenJDK 8, poor me...)