Scrivio Interview library
LeadershipAdvanced7 min read · updated 12 November 2026

Your organisation runs Java services on several JDK distributions and versions. How would you choose and standardise JDK distribution and version policy across the fleet?

I would pick one or two supported distributions, such as Eclipse Temurin, Amazon Corretto, Azul Zulu or Oracle JDK, based on support terms, how quickly security updates ship and licensing, and standardise on LTS releases, which now arrive every two years (17, 21, 25), with a plan to adopt each one. The platform team provides patched standard base container images with the chosen JDK, keeps an inventory of which service runs which version, and sets upgrade deadlines. Key services build against early-access JDKs in CI so problems with the next release surface months before we need it.

Why this question is asked

JDK sprawl creeps in quietly: one team uses a vendor image from 2021, another an Oracle build with unclear licensing, a third a JDK 11 nobody dares to touch. The result is security patches applied unevenly, licence risk, and upgrades that become multi-year projects. Interviewers ask this question of senior engineers because it is a typical platform decision: technical, financial and organisational at once. In this answer, we will recap how JDK releases and distributions work, then build a policy step by step: choosing the distribution, choosing versions, delivering them through base images, tracking and enforcing upgrades, and testing ahead.

1A Quick Recap: One OpenJDK, Many Distributions

Almost every JDK we can download is built from the same OpenJDK source code. The differences between distributions are in who builds it, how long they publish updates for each version, how fast they ship security fixes, which platforms they support, whether commercial support is available, and under which licence. Eclipse Temurin from the Adoptium project, Amazon Corretto, Azul Zulu, Microsoft's Build of OpenJDK, Red Hat's build and Oracle's OpenJDK builds are free to use; Oracle JDK has its own licence terms that have changed several times, so its current terms must be checked before choosing it.

Java releases a new feature version every six months, in March and September. Every two years one of them is a long-term support (LTS) release, which vendors patch for many years: 17 in 2021, 21 in 2023 and 25 in 2025. Security and bug-fix updates for supported versions arrive quarterly, in January, April, July and October.

2Choosing the Distribution

For most organisations the choice comes down to three questions. Support: do we need a vendor to call when the JVM crashes, and how long will they patch the versions we use? Update timeliness: how soon after the quarterly security release does this vendor publish builds for all our platforms and base images? Licensing: can we use it in production at our size without fees or audits, now and for the foreseeable future?

A free, widely used build such as Temurin or Corretto is the usual default, with commercial support bought from a vendor if the organisation wants it. Running on one cloud can tilt the choice towards that cloud's build. The main point is to choose one primary distribution, perhaps with one exception for a documented reason, rather than letting each team decide. Fewer distributions mean fewer images to patch and fewer surprises.

Criteria for choosing a distribution
CriterionQuestion to askWhy it matters
Support termsHow long are LTS versions patched? Paid support?Avoid forced upgrades mid-year
Update timelinessDays from quarterly release to our builds?Security exposure window
LicensingFree for our production use? Audit risk?Legal and financial risk
Platform coveragex86 and ARM, Linux, containers?One distribution for the fleet
Ecosystem fitBase images, cloud integration, tooling?Effort for the platform team

3Choosing Versions: LTS With a Plan

Production services should run LTS releases, because non-LTS versions stop receiving updates after six months and would force an upgrade twice a year. The policy then has to say what happens when a new LTS arrives. A practical rule is: new services start on the latest LTS once our frameworks support it, and every service moves to a new LTS within a fixed window, for example 12 to 18 months after its release, so that at any time we run at most two LTS versions. With releases every two years, that means 21 and 25 today, and 17 being retired.

Framework baselines help here. Spring Boot 3 requires Java 17 or later, and Spring Boot 4 and Spring Framework 7 keep 17 as the minimum while recommending newer LTS versions. Upgrading frameworks and JDKs together, on a schedule, avoids the trap of a service that cannot move its JDK because its framework is too old, and vice versa.

Step throughLifecycle of an LTS version in the fleet
  1. New LTS releasedfor example Java 25 in September 2025
  2. Early-access testing already donekey services built against EA builds
  3. Base image publishednew services may adopt
  4. Migration windowall services within 12 to 18 months
  5. Oldest LTS retiredimages removed, exceptions reviewed

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

4Delivering the JDK Through Standard Base Images

The easiest way to standardise is to make the standard path the easiest one. The platform team publishes base container images, for example one per supported LTS, with the chosen distribution, sensible JVM defaults such as container-aware memory settings and JFR enabled, and nothing else. They rebuild them automatically within days of each quarterly security update and of any OS patch.

Java
# Published by the platform team, rebuilt after every quarterly JDK update
FROM registry.example.com/base/java:25 # Temurin 25, patched
COPY target/app.jar /app/app.jar
ENTRYPOINT ["java", "-XX:MaxRAMPercentage=75", "-jar", "/app/app.jar"]
# Services pick up the new patch by rebuilding; a bot opens the pull request

Services then only reference the image tag, and a dependency bot opens pull requests when a new image is available. This turns a security update across 400 services from a coordination project into a routine rebuild.

5Tracking Versions and Setting Deadlines

A policy without an inventory is a wish. We need to know which service runs which JDK version and distribution, from build metadata, a software bill of materials, or simply from runtime metrics, since every JVM reports java.version and java.vendor and these can be tagged on a metric. A dashboard of versions across the fleet shows progress and stragglers.

Deadlines come from the support calendar: when the vendor's free updates for an old version end, every service must be off it. Teams that need longer get a documented exception with a date, and the exceptions are reviewed regularly. Visibility to engineering leadership keeps the deadlines real.

6Testing Ahead With Early-Access Builds

The cheapest time to find an upgrade problem is before the release. OpenJDK publishes early-access builds of the next version months in advance. Running the CI builds of a few key services, plus our shared libraries, against those builds, for example nightly, reveals removed APIs, stricter checks, changed defaults and libraries that do not yet support the new class file version. Problems found this way can be reported to library maintainers or worked around before the release date, so that when the next LTS ships, adopting it is routine rather than a surprise.

7Follow-up questions

Is it risky to run several distributions in one fleet?

Not technically, since they share the same source code and behave almost identically. The risk is operational: more images to patch, different update timing, and confusion about licensing and support. One primary distribution, with documented exceptions, keeps that manageable.

Why not stay on an old LTS as long as it receives updates?

Because the cost of the jump grows with its size. Moving from 17 to 25 in one step means dealing with eight releases of changes at once, under deadline pressure when support ends. Regular upgrades are smaller and also bring real benefits, such as better garbage collectors, virtual threads and lower memory use, which can reduce infrastructure costs.

How do you handle a critical JDK vulnerability between quarterly releases?

The same pipeline handles it: the vendor publishes a patched build, the platform team rebuilds the base images, and the bot opens pull requests across services. The inventory shows which services are still unpatched, so we can follow up. Having the pipeline in place is what makes an urgent fix take days instead of months.

8Conclusion

In this answer, we saw that JDK distributions are builds of the same OpenJDK that differ in support, update timeliness, platforms and licensing, and that LTS releases now arrive every two years (17, 21, 25) with quarterly updates. We built a policy: one primary distribution chosen on those criteria, LTS versions with a fixed migration window, standard patched base images that make the right choice the easy one, a version inventory with deadlines and reviewed exceptions, and early-access builds in CI so the next LTS is routine to adopt.

What to say in the interviewAbout 90 seconds aloud

Open with

I would treat it as a platform policy with five parts. First, pick one primary distribution. They are all built from OpenJDK, so I would compare support terms, how fast each vendor ships the quarterly security updates for our platforms, and licensing, which matters especially for Oracle JDK, whose terms have changed several times and need checking.

Then, if they want more

Usually a free build like Temurin or Corretto, optionally with paid support, is the default, with exceptions documented. Second, standardise on LTS releases, which come every two years: 17, 21 and 25.

New services start on the latest LTS once our frameworks support it, and every service moves to a new LTS within something like 12 to 18 months, so we run at most two at a time, upgrading Spring Boot alongside.

Third, deliver it through standard base images per LTS, with the chosen JDK and good JVM defaults, rebuilt automatically after each quarterly update, with a bot opening pull requests, so patching four hundred services is a routine rebuild.

Fourth, keep an inventory of which service runs which version, for example from java.version tags on runtime metrics, and set deadlines from the vendor support calendar, with reviewed exceptions visible to leadership. Fifth, test ahead: key services and shared libraries build nightly against early-access JDKs, so incompatibilities show up months before the next LTS ships.

About this answer

Last updated
12 November 2026
Versions it names
Java 11, Java 17, Spring Boot 3, Spring Boot 4
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 organisation runs Java services on several JDK distributions and versions. How...": https://scrivio-interview-library.netlify.app/java/jvm-architecture/211c280653/