Oracle recommends that the JDK is updated with each Critical Patch Update (CPU). Also, you should know that some applications might refer to Java 8 as version 1.8.0. Oracle plans to maintain it until at least 2030. Java 8 is the last free software public update for commercial use, which explains why it remains popular. You can download the version you need below: Java 8, Java 11 and Java 17 are the three long-term support versions recommended by Oracle. However, many versions of Java are actively maintained for compatibility purposes.
The latest version of Java is Java 20 or JDK 20 released on March, 2023.