Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Many companies stayed on Java 8 for close to a decade. What did that cost them, and how would you prevent the same situation in your organisation?

Staying on Java 8 for a decade cost companies years of performance, garbage collection, container and security improvements and newer language features, and then forced a big, risky upgrade once libraries and frameworks dropped Java 8 support. The longer the gap, the more changes piled up, such as removed modules and strong encapsulation. I would prevent it with a regular upgrade budget, CI on newer JDKs, central ownership of the platform, and upgrade lag measured as a platform health metric.

Why this question is asked

Java 8 came out in 2014 and was still the most used version in many surveys almost ten years later. That is unusual for a platform that releases every six months, and it is a useful lesson in how technical debt accumulates silently. Interviewers ask senior candidates this because the answer combines technical knowledge of what changed after 8 with organisational judgement about why companies got stuck. In this answer, we will see why so many companies stayed, add up what it cost them, look at how the gap made the eventual move harder, and then design the practices that keep an organisation from repeating it.

1Why So Many Companies Stayed on Java 8

Java 8 was a great release: lambdas, streams and the new date and time API made it feel modern. Then Java 9 arrived in 2017 with the module system, strong encapsulation of internals and the start of removals, and it broke many libraries that reached into JDK internals. At the same time, Oracle changed its licensing and update policy for Oracle JDK, which made many companies nervous about moving at all.

So the first upgrade after 8 looked costly and risky, and the benefit was not obvious to people who did not follow the platform. Java 8 kept receiving updates from several vendors, so there was no immediate pressure. Each year the decision to wait looked reasonable on its own, and that is exactly how a decade passes.

2What They Missed

The most direct cost was performance. Each release after 8 improved the JVM. G1 became the default collector in 9 and kept improving, low-pause collectors such as ZGC and Shenandoah arrived, and string storage became more compact in 9, which alone reduces heap use noticeably for string-heavy services. Teams that upgraded commonly report lower CPU and memory use for the same load, which on a large fleet is a real cloud bill.

Containers were the second gap. Early Java 8 builds did not understand container memory and CPU limits, so the JVM sized its heap from the host's memory and got killed. Container awareness arrived in Java 10 and was backported to 8u191, but newer JDKs kept improving it, along with startup features such as class data sharing.

Security and language features made up the rest. Newer TLS versions and modern crypto arrived first in newer JDKs, and some security improvements were never backported. On the language side, developers on 8 never got var, switch expressions, text blocks, records, sealed classes, pattern matching or virtual threads, which also made hiring harder, because engineers want to work with current tools.

Some of what a Java 8 shop missed by 2023
AreaArrived after 8Effect of missing it
Garbage collectionG1 default (9), ZGC, ShenandoahLonger pauses, more memory
MemoryCompact strings (9)Larger heaps for the same data
ContainersContainer awareness (10) and later fixesWrong heap sizing, OOM kills
SecurityTLS 1.3 (11), newer algorithmsOlder defaults, slower patching
Languagevar, records, sealed, patternsMore boilerplate, harder hiring
ConcurrencyVirtual threads (21)Thread-per-request limits remain

3How the Gap Turned Into a Big-Bang Upgrade

The bigger cost came later. Frameworks and libraries do not support old Java forever. Spring Framework 6 and Spring Boot 3 required Java 17, Hibernate 6 required at least 11, and many libraries set their own baselines higher over time. So once a company needed a security fix that existed only in a new library version, it had to upgrade the JDK first, under time pressure.

And the jump was large, because changes accumulate. Going from 8 to 17 meant absorbing the removal of the Java EE and CORBA modules in 11 (JAXB, JAX-WS and friends disappear), the strong encapsulation of JDK internals in 16 and 17, the removal of Nashorn in 15, many changed defaults, and new versions of every bytecode tool and agent. Usually it also meant the Spring Boot 3 move with its javax to jakarta rename. Each of these is manageable alone. All of them at once, across hundreds of services, under a deadline, is a project that freezes feature work for months.

Step throughHow waiting turns into a forced migration
  1. Stay on 8; each year waiting looks cheapno immediate pressure
  2. Changes accumulate in the JDKremoved modules, encapsulation, new defaults
  3. Libraries and frameworks drop Java 8e.g. Spring 6 requires 17
  4. A security fix needs a new librarythe JDK upgrade becomes urgent
  5. Big-bang migration under a deadlineJDK, framework and rename at once

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

4Preventing It: Budget, CI and Central Ownership

The fix is mostly organisational. First, a regular upgrade budget: a fixed share of each team's capacity every quarter for platform upgrades and dependency hygiene, plus a platform team that does the shared work. When the money is already there, nobody has to win a business case to stay current.

Second, CI on newer JDKs. Every service builds and tests on the next LTS, and a sample on early-access builds, in a non-blocking job. This turns invisible debt into visible failures, early, while they are cheap to fix.

Third, central ownership. One platform team owns the JDK version, base images and shared library versions, with a published support policy, for example that we support the current LTS and the previous one, and the previous one only until a fixed date. Without an owner, the upgrade is everyone's job and therefore nobody's.

5Measuring Upgrade Lag as a Health Metric

Finally, we make the debt visible to the people who fund the work. Upgrade lag is how far each service is behind the newest LTS, measured in versions or in months. The dashboard shows the share of services on the current LTS, the oldest version still running, and how many services are within a year of their runtime's end of updates.

Reported every quarter next to availability and security metrics, lag stops being a technical detail. A number that rises for two quarters in a row is a signal leadership understands, long before it becomes a forced migration.

Text
# Example quarterly platform health report
services on current LTS (25): 412 / 500 (82%)
services on previous LTS (21): 81
services on older versions: 7 <- each has an owner and exception date
median lag behind newest LTS: 0 versions
worst lag: 2 versions (17)
services whose JDK loses free updates
within 12 months: 7

6Follow-up questions

Was staying on Java 8 ever the right call?

For a short time, often yes: right after Java 9 the ecosystem was not ready, and waiting for 11 was sensible. The mistake was making waiting the default for years without measuring the cost or reviewing the decision.

How do you convince leadership if the current version still works?

With their own numbers: CPU and memory saved in a pilot upgrade, the dates when free updates end, and the list of libraries that will soon require a newer JDK. A forced migration under a deadline is far more expensive than steady small steps, and past cases show it.

What is a reasonable target for upgrade lag?

Most services on the newest LTS within about a year of its release, nobody more than one LTS behind, and every exception owned and dated. That keeps the fleet within the free update window of good vendors.

7Conclusion

In this answer, we saw that companies stayed on Java 8 because the first step beyond it looked costly and waiting always seemed cheap. They missed performance, GC, container, security and language improvements, and when libraries dropped Java 8 they faced a large, forced jump through removed modules and strong encapsulation at once. A regular upgrade budget, CI on newer JDKs, central ownership and upgrade lag reported as a health metric prevent the same thing from happening again.

What to say in the interviewAbout 80 seconds aloud

Open with

Staying on Java 8 cost companies twice. First, they missed years of improvements: G1 as default and later ZGC, compact strings that cut heap use, better container awareness, newer TLS and security fixes, and language features from var and records to virtual threads, which also made hiring harder.

Then, if they want more

Second, and worse, the debt came due all at once. When Spring 6 and Boot 3 required Java 17 and other libraries raised their baselines, a security fix could force the move.

And the jump from 8 to 17 bundled everything: the Java EE modules removed in 11, strong encapsulation of internals, Nashorn gone, new versions of every agent and plugin, and usually the javax to jakarta rename. That turned into a months-long big-bang project.

To prevent it, I would fund upgrades as a regular budget, a platform team plus a small fixed share of every team's capacity; run every service's CI on the next JDK early; give one platform team clear ownership of the JDK, images and shared versions with a published support policy; and report upgrade lag as a health metric every quarter, so rising debt is visible long before it becomes urgent.

About this answer

Last updated
12 November 2026
Versions it names
Java 8, Java 9, Spring Boot 3, Hibernate 6
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 "Many companies stayed on Java 8 for close to a decade. What did that cost them, and how...": https://scrivio-interview-library.netlify.app/java/java-versions/472aa1777c/