Quick revision
The short answer
Since 2018 Java ships a feature release every six months and an LTS release every two years, so improvements now arrive steadily instead of once every few years. Many past reasons to pick Kotlin or Scala, such as concise data classes and pattern matching, now exist in Java, while some, notably Kotlin's null safety in the type system, still do not. Because a polyglot fleet costs more in tooling, hiring and shared code over many years, the reasonable long-term bet for a large organisation is Java as the default with narrow, justified exceptions.
What to remember
In this answer, we saw that the time-based release cadence, with an LTS every two years, has delivered records, sealed classes, pattern matching and virtual threads, removing many of the old reasons to choose Kotlin or Scala, while some differences such as Kotlin's null safety remain. Weighed against the long-term costs of a polyglot fleet, the reasonable bet is Java as the default with narrow, justified, reviewed exceptions.
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.
Since 2018 Java ships a feature release every six months and an LTS release every two years, so improvements now arrive steadily instead of once every few years. Many past reasons to pick Kotlin or Scala, such as concise data classes and pattern matching, now exist in Java, while some, notably Kotlin's null safety in the type system, still do not. Because a polyglot fleet costs more in tooling, hiring and shared code over many years, the reasonable long-term bet for a large organisation is Java as the default with narrow, justified exceptions.
Why this question is asked
Ten years ago, the case for Kotlin or Scala in a Java shop was easy to make: Java 8 was verbose, new versions came rarely, and the other languages had features Java developers could only envy. Today the picture is different, and senior engineers are expected to reason about it with current facts rather than old impressions. Interviewers ask this to see whether we understand what the release model changed and how to turn that into a durable language strategy. In this answer, we will recap the release cadence, compare what Java has gained with what other languages still offer, weigh the long-term cost of a polyglot fleet, and arrive at a policy.
1A Quick Recap of the Release Cadence
Before 2018, Java releases were feature-driven: a release shipped when its big features were ready, so Java 7 to Java 8 took about two and a half years, and Java 8 to Java 9 more than three. Developers waited years for anything new, and other JVM languages filled the gap.
Since Java 10 in March 2018, OpenJDK releases are time-based: a new feature release every March and September, carrying whatever features are finished. Features that need more feedback first appear as previews or incubators and become final in a later release. Every few releases is a long-term support release, which vendors maintain for years. LTS releases came every three years at first (Java 11 in 2018, 17 in 2021), and since then every two years: Java 21 in 2023 and Java 25 in 2025. Most organisations run LTS releases and move from one to the next.
2What Java Has Gained Since Then
The steady cadence has delivered, one release at a time, many of the features that once motivated other languages. A short example shows how far it has come: a sealed type hierarchy, records and an exhaustive switch with record patterns, all in standard Java 21 and later.
| Feature | In Kotlin or Scala | In Java |
|---|---|---|
| Concise data classes | data class / case class | records, Java 16 |
| Closed hierarchies | sealed classes | sealed classes, Java 17 |
| Pattern matching | when / match | switch patterns and record patterns, Java 21 |
| Lightweight concurrency | coroutines / effect libraries | virtual threads, Java 21 |
| Null safety in the type system | Kotlin: String vs String? | not in the language; annotations such as JSpecify |
| Extension functions, default arguments | yes | no |
Ten years ago, this needed a Scala case class hierarchy or a Kotlin sealed class with when. Add var for local type inference, text blocks, virtual threads for cheap blocking concurrency, sequenced collections, and the stream and HTTP client APIs, and most of the everyday productivity gap between Java and Kotlin for business services has closed.
3What Other Languages Still Offer
It would be wrong to say the gap is gone. Kotlin's null safety is the biggest remaining difference: the compiler distinguishes String from String? and refuses to compile code that might dereference null. Java has no such types today. Annotations such as JSpecify's @Nullable and @NullMarked, checked by tools such as NullAway, give much of the benefit, and Spring Framework 7 has adopted JSpecify, but it is a tool layer rather than the language. Project Valhalla has explored null-restricted types for Java; check the current status before counting on them.
Kotlin also has extension functions, default and named arguments, and coroutines with structured concurrency built into its libraries. Scala has a far more powerful type system and a functional ecosystem, and it remains the natural choice where the ecosystem is Scala-first, such as parts of data engineering. For teams that value these, the languages are still attractive.
4The Long-Term Cost of a Polyglot Fleet
The costs of a second language grow with time and size. Over five or ten years, engineers move between teams, the original authors leave, and services pass to new owners. Each language multiplies the tooling the platform team must support: build templates, static analysis, formatting, coverage, security scanners and upgrade guides. Shared code becomes harder, because libraries must work well for callers in every language. Hiring and internal mobility suffer when roles need narrower skills.
There is also an upgrade cost. Each language has its own release cycle and its own compatibility story with new JDKs and frameworks, so a fleet-wide upgrade such as a new Spring Boot major version has to be planned for each language. With a fast-moving Java, the question becomes: does the remaining gap justify these recurring costs for this kind of service?
5A Reasonable Long-Term Bet
For a large organisation, the sensible bet is Java as the default language, used for shared libraries, platform code and most services, with narrow, justified exceptions. An exception might be Kotlin for a team that values null safety and owns whole services, or Scala for a data platform built on a Scala-first ecosystem. Each exception is written down with its reasons, staffed so more than one person can maintain it, and reviewed periodically.
This is a bet, so it should be revisited. Each new Java LTS is a natural checkpoint: we look at what Java added, what the exceptions have cost and delivered, and whether the remaining gap has changed. If Java gains null-restricted types, the strongest remaining argument for Kotlin weakens further; if a language offers something important that Java cannot, the exception list can grow.
6Follow-up questions
Does the six-month cadence mean organisations must upgrade every six months?
No. Most organisations move between LTS releases, now every two years, and use the feature releases only to try new features early. The cadence matters because each LTS now contains two years of steady improvements, and preview features give teams a chance to see what is coming.
Is Kotlin still worth it for a new team today?
It can be, especially for teams that value null safety in the compiler and concise syntax, and Kotlin remains well supported by Spring. The question is less whether Kotlin is good and more whether its remaining advantages over modern Java outweigh the extra cost for the organisation in that particular case.
How would you measure whether the exceptions are paying off?
By comparing similar services: delivery lead time, change failure rate, incident handling time, defect rates and onboarding time for Java and non-Java services, plus developer surveys. If an exception shows no measurable benefit while adding cost, that is a reason to stop extending it.
7Conclusion
In this answer, we saw that the time-based release cadence, with an LTS every two years, has delivered records, sealed classes, pattern matching and virtual threads, removing many of the old reasons to choose Kotlin or Scala, while some differences such as Kotlin's null safety remain. Weighed against the long-term costs of a polyglot fleet, the reasonable bet is Java as the default with narrow, justified, reviewed exceptions.
Open with
The cadence changed the economics. Before 2018, Java releases came years apart and the language looked frozen, so Kotlin and Scala filled real gaps. Since Java 10, there is a feature release every six months and an LTS every two years now, 21 in 2023 and 25 in 2025, so features arrive steadily.
Then, if they want more
And they have: records cover data classes, sealed classes and pattern matching for switch with record patterns cover what people used when and match for, and virtual threads give cheap concurrency without a new programming model. That removes most of the productivity argument for typical business services. It does not remove all of it.
Kotlin's null safety in the type system is still a real difference; Java relies on annotations like JSpecify with tools such as NullAway, which is good but not the same. Kotlin also has extension functions and default arguments, and Scala is still natural for Scala-first data tools.
On the other side, a polyglot fleet costs more every year in tooling, hiring, shared libraries and coordinated upgrades, and those costs grow as people move on.
So my bet would be Java as the default for shared libraries and most services, with narrow, documented exceptions such as a Kotlin team owning whole services or Scala for a data platform, and a review at each LTS to see whether the gap has changed.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 8, Java 21, Java 10, Java 11
- 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 "Java moved to six-month releases in 2018 and has since added records, pattern matching...": https://scrivio-interview-library.netlify.app/java/jvm-architecture/3c0ca8a2e6/