Interesting in running the current version of Java (and its compiler) on your Fedora instance? It’s easy:
sudo dnf install java-11-openjdk-devel sudo alternatives --config java # select Java 11 sudo alternatives --config javac # if necessary, select java 11
Note that this is still labeled as the “early access” version as of this writing – but the early access version is virtually identical to the released version.