Scrivio Interview library
ScenarioIntermediate6 min read · updated 12 November 2026

Your team wants to adopt a feature that is final in Java 26 but your platform runs Java 25 LTS. What options do you have and what do you recommend?

We have three options: stay on 25 and wait for the next LTS that contains the feature, which is the usual default; run selected services on 26 and commit to moving to 27 within six months; or, if the feature was a preview in 25, enable it there and accept that its API may have changed before it became final. Whatever we pick, we first check that Spring Boot, build plugins and bytecode libraries such as ASM and Byte Buddy support the newer JDK, and we decide through the platform policy and record the decision, rather than team by team.

Why this question is asked

With a release every six months, it is common for a useful feature to become final just after we standardised on an LTS. The team asking for it is usually right that it would help; the question is what it costs to get it now. Interviewers ask this scenario to see whether we can lay out options with their real costs and make a decision that works for a whole platform, not only for one team. In this answer, we will recap the release model, look at each option and what it costs, check the tooling, and end with a recommendation and how to record it.

1A Quick Recap of LTS and Non-LTS Releases

Java ships a feature release every March and September. Every two years one of them is a long-term support release (LTS), which vendors patch for many years: 21 in 2023, 25 in 2025, and 29 expected in September 2027. The releases in between, 26, 27 and 28, get about six months of updates from Oracle, until the next release replaces them; some other vendors offer a little more, so check your vendor.

So a feature that became final in 26 will be in 29 as well, because each release contains everything finalised before it. The question is whether to wait about two years for it, or to pay the cost of getting it sooner.

2Option 1: Stay on 25 and Wait for the Next LTS

This is the usual default for a production fleet. We keep everything on 25, with its long support window, and the feature arrives when we move the fleet to 29. Nothing changes for the platform, and the team can still use the feature in experiments on a newer JDK.

The cost is time: up to two years without the feature. For most features, especially language conveniences, that cost is small, because there is a reasonable way to write the same thing on 25. For a few, such as a large performance or startup improvement, the cost may be real money and deserves a closer look.

3Option 2: Run Selected Services on 26

We can run one or a few services on 26. That gives the feature now, but it commits those services to the six-month train: 26 loses Oracle updates when 27 arrives, so the service must move to 27, then 28, then 29. Each move is small, but it happens every six months and must not slip, because a non-LTS JDK without updates is an unpatched runtime.

There are platform costs too. The platform team must build and maintain base images for 26, 27 and 28 next to 25, the compatibility matrix must cover them, and vendors' support for non-LTS releases may be shorter or absent, so check your vendor. This option only makes sense for a service with a strong reason, a team willing to upgrade every six months, and good automated tests.

4Option 3: Use the Preview in 25, If There Was One

Many features are previews for one or more releases before becoming final. If our feature was a preview in 25, we could enable it there with --enable-preview. That keeps us on the LTS, but it brings the usual preview costs: class files compiled with preview features run only on 25 with the flag, and the final version in 26 may differ from the 25 preview.

Java
// Built on 25 with --enable-preview, using the preview shape of a feature
javac --release 25 --enable-preview ...
// The final version in 26 changed a method name or a rule:
// on 26 the code fails to compile, and the 25 class files will not load at all
// (class file version 69.65535 was compiled with preview features that are unsupported)
The three options side by side
OptionWhat we gainWhat it costs
Stay on 25, wait for 29Long support, no extra platform workUp to two years without the feature
Run some services on 26Feature now, final APIUpgrade every six months; extra images; shorter support
Preview in 25Stay on LTSAPI may differ from final; class files tied to 25

So this option trades waiting for a rewrite later, and it locks the service to exactly 25 until the rewrite is done. Before choosing it, we compare the preview JEP in 25 with the final JEP in 26: if the history section says the API changed, the rewrite is certain. In most platforms this option is allowed only under the preview exception process, with a named owner.

5Checking the Tools Before Any Move

Whichever option involves a newer JDK, we check the toolchain before promising anything. Spring Boot states which Java versions each release supports, and newer JDKs are usually supported soon after release, but not always on day one. Build plugins, Lombok, JaCoCo and other annotation processors and bytecode tools must understand the new class file version. Libraries that generate or read bytecode at run time, such as ASM, Byte Buddy (used by Mockito and Hibernate), and APM agents, are the usual blockers: an old version fails with an error saying it does not support the class file version, or quietly skips instrumentation.

A quick way to find out is to build and test the service on 26 in a branch, with the agents we use in production attached. Byte Buddy, for instance, has an experimental property to try unsupported versions, but relying on that in production is a sign the ecosystem is not ready yet.

Step throughDeciding on a request for a feature final in 26
  1. Team asks for a feature final in 26platform runs on 25 LTS
  2. Large measured benefit, not convenience?
    YesCheck tools on 26NoWait for 29; use it in experiments
  3. Spring Boot, plugins, ASM, Byte Buddy, agents ready?
    YesCheck team commitmentNoWait, or upgrade tools first
  4. Team will upgrade every six months?
    YesAllow named services on 26 under policyNoWait for 29
  5. Record the decision in the platform policywith owner and review date

5 steps in order. Play them, or step through them one at a time.

6The Recommendation and How to Record It

My recommendation is usually to stay on 25 and wait for the next LTS, while the team uses the feature in experiments and prepares for it. If the benefit is large and measured, for example a startup or memory improvement that saves real cost, I would allow a small number of named services on the non-LTS train, with the team committed to moving every six months and the platform supporting it. I would avoid the preview route unless the preview and final versions are known to be identical.

The important part is that this is a platform decision, not something each team decides alone. The policy says which JDK versions are allowed, under what conditions a service can run a non-LTS release, and who approves it. The decision, the owner, the services and the review date are written down, so the next team that asks gets the same answer, and the platform knows exactly which images it must support.

7Follow-up questions

Could we backport the feature ourselves?

Not for language or VM features; that would mean maintaining our own JDK build. For a library feature, there may be a third-party library that offers something similar on 25, which is often the best short-term answer.

What if a framework we use requires 26 for a feature?

Frameworks rarely require a non-LTS release; they target LTS baselines and support newer JDKs optionally. If one did, it would be a strong signal to wait for that framework version to support the next LTS instead.

How do you handle a service on 26 when the team stops upgrading?

The policy makes this explicit: if the service falls behind the current non-LTS release past its support end, it returns to the LTS track at the next opportunity, and the exception is withdrawn. The dashboard flags it automatically.

8Conclusion

In this answer, we saw three options for a feature that is final in 26 while the platform runs 25: wait for the next LTS, which is the usual default; run selected services on 26 and commit to six-monthly upgrades with vendor support limits; or enable the 25 preview and accept API changes and class files tied to 25. In every case we check Spring Boot, build plugins and bytecode libraries such as ASM and Byte Buddy first, and we decide through a recorded platform policy.

What to say in the interviewAbout 80 seconds aloud

Open with

I see three options. The default is to stay on 25 and wait for the next LTS, 29 in 2027, which will include everything finalised in 26, 27 and 28.

Then, if they want more

The team can still try the feature in experiments. The second option is to run selected services on 26.

That gives the final API now, but those services join the six-month train: 26 loses Oracle updates when 27 arrives, so they must move to 27 and 28 on time, the platform needs extra images, and some vendors give non-LTS releases little or no support.

The third option, if the feature was a preview in 25, is to enable it there, but then the class files only run on 25 and the final API may have changed, so a rewrite is likely.

Before any move to a newer JDK I would verify Spring Boot support, build plugins, Lombok, and especially bytecode libraries like ASM and Byte Buddy and our APM agents. My recommendation is usually to wait, unless there is a large measured benefit and a team willing to upgrade every six months.

Either way it should be a recorded platform policy decision, not each team choosing on its own.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your team wants to adopt a feature that is final in Java 26 but your platform runs Java...": https://scrivio-interview-library.netlify.app/java/java-versions/220a568df3/