>>106927468
openjdk is not an alternative to java.
Java is the language that is compiled to run on the jvm (java virtual machine). The different versions of the language (6,8,17,21 for example) can be run on a jvm with at least the same version number. If you install java on your computer, you have to decide between the jre and jdk package. Jre is the java runtime environment and is as the name suggests simply for executing a program on the jvm. Jdk is the java development kit and includes the jre, meaning it allows you to compile java (so it includes javac - a java compiler). And the jdk simply has to perform to spec, meaning you can have different implementations fulfilling the java 21 specification.

Openjdk is actually the reference implementation, pretty much all major jdks are based on it. Oracle's jdk is virtually identical to openjdk ever since java 11. Oracle is by far not the only one to repackge the openjdk as their own release, but they're the biggest one and they still play the biggest role in advancing the specifications.