Elasticsearch is built using Java, and includes a bundled version of OpenJDK from the JDK maintainers (GPLv2+CE) within each distribution. This mean you don't have to install Java before installing Elasticsearch.
Source: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html
After you install Elasticsearch, you can check which version of Java was installed by using this command:
Latest version is:
openjdk version "1.8.0_242"
Source: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html
After you install Elasticsearch, you can check which version of Java was installed by using this command:
java -version
Latest version is:
openjdk version "1.8.0_242"