Skip to content

Try “polymorphism”, “TCP handshake” or “git rebase”.

    Java / Modern Java

    The Version Map

    Interviewers ask "what's new in Java X?" and real codebases run on the LTS versions. What arrived when:

    Chapter 11 of 111 min read

    Interviewers ask "what's new in Java X?" and real codebases run on the LTS versions. What arrived when:

    VersionYearHeadline features
    8 (LTS)2014lambdas, functional interfaces, method references, streams, Optional, default methods, new date/time API (java.time)
    92017List.of/Set.of/Map.of, modules (JPMS), JShell (an interactive Java prompt), private interface methods
    102018var
    11 (LTS)2018String isBlank/strip/repeat/lines, standard HTTP client, java File.java single-file run
    142020switch expressions, helpful NullPointerException messages
    152020text blocks
    162021records, pattern matching for instanceof, Stream.toList()
    17 (LTS)2021sealed classes
    21 (LTS)2023pattern matching for switch, record patterns, virtual threads (Concurrency), sequenced collections
    25 (LTS)2025the newest LTS; refinements such as flexible constructor bodies and compact source files