Bugger Off Java 9, Hello Java 10
CodeFX Weekly #58 — 2nd of March 2018
Hi everyone,
Java 10 is coming close, release will be on March 20th, and this weekly is dedicated to turning the corner from 9 to 10.
I send this newsletter out every Friday. Yes, as an actual email. Subscribe!
Bugger off, Java 9
Java 9 is a huge release that keeps on giving. Just the other day, I published a post explaining how multi-release JARs work. I still got a few more things I want to write about for Java 9, particularly the module system, but I guess this will peter out over the summer.
I also collected a few interesting StackOverflow questions that are related to Java 9. Take a look:
- how
Stream::count
got much smarter - how that might screw your side effects (and why
Stream::peek
should only ever be used for debugging) - reduced feature set of the process API improvements on Windows
Last but definitely not least, note that the current version 9.0.4 is the last 9er you’ll ever see. If you migrated to Java 9 already, you need to jump to 10 in a few days. Don’t worry, though, there are no known compatibility concerns.
Java 10 is around the corner
Somebody blabbed about the short release cycle giving developers “release fatigue”, which I think is a little ludicrous. But what I do find jarring is that my continued work on writing about the module system keeps me from really exploring Java 10.
That shouldn’t keep you, though, and I collected a couple of sources that will get you started.
Overview:
- JDK 10 Early Access Builds
- JDK 10 Early Access Release Notes
- JDK 10 Javadoc
- 109 New Features In JDK 10 by Simon Ritter
Individual features:
- First Contact With
var
In Java 10 by yours truly (also as video) - Immutable Versus Unmodifiable in JDK 10 by Dustin Marx (recommended!)
- APIs To Be Removed from Java 10 by Dustin Marx
- JDK 10’s Summary Javadoc Tag by Dustin Marx (at this point, you might just wanna subscribe to his feed or follow him in Twitter)
The next thing I want to explore in depth is application class-data sharing. It sounds like it might provide a measurable launch time reduction for large applications.
Shots
Twitter now has bookmarks, which is plain awesome. No more “hearting” of things to keep track of them.
- Java EE is now Jakarta EE and 5 things you need to know about that
- meet Marry Passwords (if you need to convince family and friends to use a password manager)
- Tabs vs Spaces? Bill Gates agrees with me
- what do you think about exceptions now?!
- a bar in a shower
- Jupiter’s red spot is evaporating — sad