Quick revision
The short answer
I would start with a full inventory of every JDK installation, version and vendor, including desktops, build servers and container images, then review with legal which Oracle licence applies to each version, because the terms have changed several times. Next I would evaluate OpenJDK distributions with long LTS updates, such as Temurin or Corretto, plus commercial support if we need it, confirm that the features we use, such as JFR, are present, and then standardise on one or two distributions enforced through base images.
What to remember
In this answer, we turned a licensing cost concern into a structured decision: a complete inventory of JDKs including desktops and build servers, a legal review of the terms for each Oracle version, an evaluation of OpenJDK distributions with long LTS updates and optional commercial support, tests of the features and tools we really use such as JFR, and finally standardising on one or two distributions enforced through base images and checks.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would start with a full inventory of every JDK installation, version and vendor, including desktops, build servers and container images, then review with legal which Oracle licence applies to each version, because the terms have changed several times. Next I would evaluate OpenJDK distributions with long LTS updates, such as Temurin or Corretto, plus commercial support if we need it, confirm that the features we use, such as JFR, are present, and then standardise on one or two distributions enforced through base images.
Why this question is asked
Licensing questions arrive from finance, not from engineers, and they usually come with a number attached and a deadline. Interviewers ask this to see whether a senior engineer can turn a vague cost concern into a structured decision: facts first, then options, then a migration that does not break anything. In this answer, we will walk through the situation step by step: building the inventory, understanding which terms apply, evaluating the alternatives, testing them, and executing and enforcing the change.
1Why This Is Harder Than It Looks
Oracle JDK is Oracle's build of the OpenJDK source. Technically it behaves the same as other builds of the same version, but it comes under Oracle's own licence. Those terms have changed more than once: older updates of Java 8 and 11 need a paid subscription for commercial use, Java 17 and later were first released under a no-fee licence for a limited time, and Oracle's subscription pricing moved in 2023 to a model based on the number of employees rather than the number of processors. So the cost depends on exactly which versions and updates run where, and the pricing model can make a small installed base expensive.
That means we cannot answer finance with a guess. The first job is to establish the facts, and the second is to involve legal, because licence interpretation is their call, not ours.
2Build a Complete Inventory
We need to know every place an Oracle JDK runs. Servers are the obvious part, but the surprises are elsewhere: developer laptops, build agents, CI images, desktop tools that bundle a JDK, and old virtual machines nobody remembers. For each installation we record the vendor, the exact version and update, the host and environment, and the owner.
The vendor is visible in the java -version output and in the release file inside the JDK folder. Configuration management tools, software asset management tools and container image scanners can collect this across the estate. Running a script that collects it is cheap; finding out about an installation during an audit is not.
- Inventory every JDKservers, desktops, build agents, images
- Legal reviews terms per versionwhich installs need a subscription
- Cost the current positionsubscription versus alternatives
- Evaluate OpenJDK distributionsLTS update length, support, platforms
- Test features and toolsJFR, agents, fonts, crypto, installers
- Standardise and enforceone or two builds via base images
6 steps in order. Play them, or step through them one at a time.
3Understand Which Terms Apply
With the inventory, legal can classify each installation: which ones are under terms that require a subscription for our use, which are under a no-fee licence, and which are outside any licence we have. This is where we often find that a large share of the cost comes from a few old installations, or from desktops that do not need a JDK at all.
The output is a clear cost of staying as we are, using Oracle's current pricing for our size. That number is the baseline any alternative has to beat, and it is the number finance actually wants.
4Evaluate the Alternatives
The main alternative is to move to an OpenJDK distribution from a vendor that publishes free LTS updates for years, such as Eclipse Temurin, Amazon Corretto, Microsoft Build of OpenJDK or Azul Zulu. Because they are built from the same source and are TCK-certified, our applications should run unchanged.
We then decide whether we need commercial support. For most companies the free builds with quarterly updates are enough, and the in-house team handles problems. If we need a vendor to call during a critical incident, or patches for an old version beyond the free window, several vendors sell support for their OpenJDK builds, usually much cheaper than an employee-based subscription. We compare these options on three things: how long each LTS is patched, how quickly security updates appear, and which platforms are covered.
| Option | Cost | Watch out for |
|---|---|---|
| Stay on Oracle JDK with subscription | Subscription priced per employee | Highest cost; terms may change again |
| Free OpenJDK build, no support | No licence cost | Need in-house expertise for incidents |
| OpenJDK build with paid support | Support contract | Compare SLA and patch speed |
| Cloud provider build (Corretto, Microsoft) | Free; support via cloud contract | Fits best where the service runs |
5Test What We Actually Use
Most features people associate with Oracle JDK have been in OpenJDK for years. Java Flight Recorder and Mission Control were open-sourced in Java 11, and JFR is in every OpenJDK build of 11 and later (and backported to recent 8 updates by most vendors). Still, we test rather than assume: the monitoring and APM agents we use, JFR recordings, cryptography providers and certificates, font rendering for PDF or image generation, and any installer or desktop launcher. Older Oracle JDK 8 included things like Java Web Start that no OpenJDK build has; if a desktop application uses it, it needs a replacement such as OpenWebStart.
We run each service's tests and a short performance comparison on the chosen build in a staging environment. The results go into the decision document, so the change is backed by evidence.
6Standardise, Migrate and Enforce
We pick one, at most two, distributions for the whole company and make them the default in base container images, server provisioning, developer setup scripts and CI images. Services move by changing the image tag or the package source, in waves, with the usual canary and rollback.
Then we prevent drift. Image scanners and CI checks flag any Oracle JDK that appears without approval, and the inventory runs regularly. Finally we report back to finance with the before and after cost and a plan to review the decision every few years, because both licensing and the vendor landscape keep changing.
7Follow-up questions
Is Oracle JDK 17 or 21 free to use?
It depends on the exact version, the update and the date, because Oracle has released recent versions under a no-fee licence for a limited period and later updates under different terms. That is exactly why legal should review each installation instead of relying on a general rule.
Will switching distributions change application behaviour?
Very rarely, because the builds come from the same source and pass the same compatibility tests. The differences we do see are usually in packaging, default certificates, fonts or bundled tools, which is why we test before rolling out.
What about developers' laptops?
They are part of the inventory and part of the risk. We give developers the standard distribution through the setup script or a tool such as SDKMAN, and remove Oracle JDK where it is not needed.
8Conclusion
In this answer, we turned a licensing cost concern into a structured decision: a complete inventory of JDKs including desktops and build servers, a legal review of the terms for each Oracle version, an evaluation of OpenJDK distributions with long LTS updates and optional commercial support, tests of the features and tools we really use such as JFR, and finally standardising on one or two distributions enforced through base images and checks.
Open with
I would start with facts, because the cost depends on exactly what runs where. So step one is an inventory of every JDK: servers, containers, build agents and developer desktops, with vendor, version and update, collected by script and image scanning.
Then, if they want more
Step two is a review with legal of which Oracle terms apply to each version, since they have changed several times and recent subscription pricing is per employee, which gives finance a real baseline cost.
Then I would evaluate OpenJDK distributions that publish free LTS updates for years, like Temurin or Corretto, and decide whether we need paid support from one of those vendors for critical incidents. Before switching, I would test what we actually use: JFR, which has been in OpenJDK since 11, our APM agents, crypto, fonts and any desktop launchers.
Then standardise on one or two distributions, make them the default in base images, CI and developer setup, migrate in waves with canaries, and add scanning so Oracle JDK does not creep back. Finally I would report the savings to finance and review the choice every few years.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 8, Java 11, Java 17
- 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.
- Official documentation
- The Java Language Specification, Java SE 21, Java SE 21 API documentation
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 company uses Oracle JDK on many servers and finance has raised licensing cost...": https://scrivio-interview-library.netlify.app/java/java-versions/cd5f766f89/