Use Java 17-22
. There isn't much difference between versions from 17 to 22. Java 23+
is not recommended because of Generational ZGC
, see below.
Java runtimes from Adoptium, Oracle, Azul and so on are basically identical. If you don't know what to pick, I recommend the latest Adoptium Java 21 JDK: https://adoptium.net/
Some notable exceptions:
- Oracle GraalVM features a more aggressive Java compiler. It seems to be worse at the start of the session, but then becomes faster than Adoptium; see the GraalVM section.