I've installed in Ubuntu bionic the following package in a 64 bits system:
apt install openjdk-11-jdk
Now I try the new java:
/usr/lib/jvm/java-11-openjdk-amd64/bin/java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)
The question is why I'm getting Java 10 instead of 11.
With this command, I see that no other java is installed in my system:
# update-alternatives --config java