To install Java on Debian 8, you can follow these steps:
sudo apt-get install -y software-properties-common sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-11-jdk
sudo update-alternatives --config java
java -version
Note that these steps will install the OpenJDK version of Java 11. If you prefer to install the Oracle version of Java 11, you can download it from the Oracle website and install it manually.
For more information on installing Java on Debian 8, you can refer to the OpenJDK documentation or the Oracle documentation.