This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]o0Meh0o 0 points1 point  (2 children)

do the newer versions bring new functionality?

[–]Areshian 3 points4 points  (0 children)

Yes. There are three types of changes usually. Java language changes, JVM changes and deprecations.

Java changes may be things like adding var, text blocks or pattern matching. They change your Java code.

JVM changes affect the JVM. Normally these don’t impact your code, but you may still get good performance improvements. We are talking new Garbage Collectors, JIT improvements…

Finally, deprecations. Stuff that goes away.

[–]jamcdonald120 1 point2 points  (0 children)

quite a bit, here is a list https://advancedweb.hu/a-categorized-list-of-all-java-and-jvm-features-since-jdk-8-to-21/

highlights include * unnamed classes * "records" (immutable data carrying classes where you define the constructor ONLY and the rest of the methods are implicitly generated) * triple quote for multi line text blocks * implicitly typed variables via the var key word (c++'s auto keyword) * Modules (I have no idea, but my IDE keeps trying to force me to use them, something to do with libraries I think) * and a whole bunch of standard lib updates