ubuntu install jdk 14

C++
sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt-get install oracle-java14-installer oracle-java14-set-default
Source

Also in C++: