Java LTS Versions Explained: Which to Learn in 2027
Quick answer
Which Java versions are LTS, when Oracle's support ends for each, how licensing differs, and which release a beginner should learn first.
Java LTS versions are the long-term support releases: Java 8, 11, 17, 21 and 25, according to Oracle's Java SE support roadmap (updated 20 October 2026). For a beginner, learn the LTS release your course or employer uses. If nothing is fixed, start with the newest LTS, Java 25, and expect to read older code written for 8, 11 and 17.
Key takeaways
- Oracle lists Java 8, 11, 17, 21 and 25 as LTS releases, and names Java 29 (September 2027) as the next planned LTS.
- Premier and Extended Support dates on the roadmap apply to Oracle's commercially supported JDK builds, not to every vendor.
- Java 17 Premier Support is listed until September 2026 (or later), so the listed date has already passed as of late November 2026.
- Do not learn "the latest version" in a panic. One LTS release, learned well, carries over to the others.
On this page:
- The LTS table from Oracle's roadmap
- What does LTS mean?
- Premier versus Extended Support
- Which Java version should a beginner learn?
- Is Java free to use?
- A version check you can run today
- Next step
- Frequently asked questions
Which Java versions are LTS, and when does support end?
Five releases are LTS on Oracle's roadmap. The dates below are from the roadmap page and refer to Oracle's commercially supported JDK. The last column is simple arithmetic counted from 29 November 2026 to the end of the listed month, so treat it as approximate.
| Release | General availability | Premier Support until | Extended Support until | Premier left from 29 Nov 2026 |
|---|---|---|---|---|
| Java 8 | March 2014 | March 2022 | December 2030 | Ended |
| Java 11 | September 2018 | September 2023 | January 2032 | Ended |
| Java 17 | September 2021 | September 2026 (or later) | September 2029 (or later) | Listed date has passed |
| Java 21 | September 2023 | September 2028 (or later) | September 2031 (or later) | About 22 months |
| Java 25 | September 2025 | September 2030 (or later) | September 2033 (or later) | About 46 months |
The roadmap footnotes the Premier and Extended dates for Java 17, 21 and 25 as "or later", and says the dates are examples that illustrate its support policy. Always open the live page before you plan around a date. Java 29 is also listed as the next planned LTS for September 2027, but it is not released, so its dates are plans and can change.
What does LTS mean?
LTS stands for long-term support. Oracle says it intends to make future LTS releases every two years, which is why the next planned one is Java 29 in September 2027. Releases in between, such as 27 and 28 on the roadmap, are not LTS, and the roadmap says those designations are subject to change.
In practice, a company that cannot upgrade every six months picks an LTS release and stays on it for years. That is one reason older releases such as Java 8 and 11 still turn up in existing codebases, even though newer versions exist.
What is the difference between Premier and Extended Support?
Premier Support is the first, fuller phase of vendor support for a release, and Extended Support is the longer tail that follows. The roadmap lists both end dates for each LTS release. The dates apply to Oracle's commercially supported JDK builds for Oracle customers, as the page states.
A small example from the table: Java 21 went generally available in September 2023, and its Premier Support runs until September 2028. That is five years of Premier Support, by simple subtraction.
The same page adds a footnote that the Extended Support fee will be waived for the period October 2026 to September 2029 for Java SE 17. The footnote lists similar uplift fee waivers for Java SE 11 (October 2023 to January 2032) and Java SE 8 (March 2022 to December 2030). No waiver is stated there for Java 21 or 25, so do not assume one.
Which Java version should a beginner learn?
Learn the LTS version your course, college or target employer uses. If you are free to choose, use the newest LTS for a new project, which on Oracle's list is Java 25. OpenJDK records that JDK 25 reached General Availability on 16 September 2025 and says it will be an LTS release from most vendors, per the OpenJDK project page.
Core syntax, types and the object model barely change between 8, 11, 17, 21 and 25. A beginner who understands classes, collections and exceptions on one release can read code from the others. Newer releases add features, so expect some code in your first job to look different from what you learned.
A simple decision rule:
- Course or college fixes a version: use that one.
- Job target lists a version: match it, then read what changed in newer ones.
- No constraint: install Java 25 and learn on it.
- Maintaining old code: check which version the project builds with before you upgrade.
If you are starting from zero, our introduction to Java programming and guide to Java basic syntax cover the fundamentals that apply to every release. Then read Java data types and Java variables.
Is Java free to use?
It depends on the build and the release. Per the Oracle roadmap, since September 2025 Oracle provides Oracle JDK 25 under a free use license for all users. It adds that update releases of Oracle JDK 25 after September 2028 are planned to move to the Java SE OTN licence. The same page says Oracle JDK releases for Java 8, 11, 17 and 21 are available under the Oracle Technology Network License Agreement for Java SE, which is free for personal, development and other users only.
The roadmap also says Oracle provides Oracle OpenJDK releases under a free open source license, with those builds listed separately on jdk.java.net. For learning, none of this blocks you. For commercial production use, read the licence for the exact build you deploy, and ask your employer which vendor build it uses.
How do I check which Java version I have?
Open a terminal and run java -version. Then compare the number with the table above. This tiny program prints the same information from inside Java:
public class VersionCheck {
public static void main(String[] args) {
System.out.println("Java version: " + System.getProperty("java.version"));
System.out.println("Feature release: " + Runtime.version().feature());
}
}Save it as VersionCheck.java and run java VersionCheck.java on Java 11 or later. If the feature number is 8, 11, 17, 21 or 25, you are on an LTS release. If it is anything else, you are on an interim release that will get updates only for a short time.
Interview preparation is version-aware too. Our Java interview questions cover topics that apply across releases, and DSA in Python vs Java vs C++ helps if you are still choosing a language.
Next step
Run the version check, write down which LTS release you are on, and open Oracle's roadmap page to confirm the dates as of late November 2026. Then pick one release and stay on it for your next three projects. Dates on the roadmap can be revised, so recheck before any upgrade plan.
Frequently asked questions
Which Java version is LTS?
According to Oracle's roadmap, updated 20 October 2026, Java 8, 11, 17, 21 and 25 are LTS releases. Oracle names Java 29, planned for September 2027, as the next LTS.
Which Java version should a beginner learn?
Learn the LTS release your course or employer uses. With no constraint, start with the newest LTS, Java 25. The basics carry over between releases, so one version learned well is enough.
When does Java 17 support end?
Oracle's roadmap lists Java 17 Premier Support until September 2026 and Extended Support until September 2029, each marked "or later". These dates apply to Oracle's commercially supported builds.
Is Java free for commercial use?
Oracle says Oracle JDK 25 is under a free use license for all users since September 2025. Older Oracle JDK releases use a licence that is free for personal and development use only. Check the licence of your exact build.
Is Java 21 still supported?
Oracle's roadmap lists Java 21 Premier Support until September 2028 and Extended Support until September 2031, each marked "or later". Confirm on the live roadmap page, since dates can be revised.