- Interesting features by version
- TODO
- JEP 405: Record Patterns
- JEP 427: Pattern Matching for switch (Third Preview)
- JEP 426: Vector API Improvements
- JEP 425: UNFINISHED: Virtual Threads
- JEP 428: UNFINISHED: Structured Concurrency
- JEP 424: UNFINISHED: Foreign Function & Memory API progress
- JEP 420 Pattern matching (affects
switch&instanceof)- Example: TODO
- JEP 419: UNFINISHED: Foreign Function and Memory API progress
- Example: TODO
- JEP 418: java.net.InetAddress improvements
- JEP 417: Vector API improvements
- JEP 400: UTF-8 by default (
javacassumes UTF-8) - JEP 413:
@snippetin javadoc
- JEP 409: Sealed classes & Interfaces
- TODO: Example link
- JEP 406: UNFINISHED: Pattern matching (affects
switch&instanceof)if (x instanceOf String s) { String a = s; }
- JEP 412: UNFINISHED: Foreign Function Interface progress (JNI replacement)
- JEP 403: no more
-illegal-accessflag - JEP 356: Improvements in Random
- TODO: Example link
- Process::inputReader, Process::outputWritter, Process::errorReader
- java.time.InstantSource
- JEP 395: Records
- TODO: Example link
- JEP 386: Alpine Linux port
- JEP 392: jpackage
- TODO: Example link
- JEP 393: UNFINISHED: Foreign-Memory Access API progress (JNI replacement)
- JEP 380: Unix Domain socket channels
- JEP 387: Elastic metaspace
- :
Stream.toList
- : Text blocks
- No interpolation (not templates)
- New String methods:
formatted,stripIndent,translateEscapes
- switch expressions
NullPointerExceptionimprovements
- TODO
- New String methods:
indent,transform
- New String methods:
repeat,isBlank,strip,lines - New HTTP client
var- Flight recorder
- Run Single-File Source-Code Programs, shebang support (
#!) on Linux
- Docker support:
-XX:-UseContainerSupport - JEP 310 Class data sharing
- Set Literals:
Set.of - List Literals:
List.of - Modules
- Stack-Walking API
- Process API updates
- New
CompletableFuturemethods:delay,timeout - Private interface methods
- Compact strings
- jlink
- jshell
- Lambdas
- Method references
- Default methods on interfaces
Optional- New DateTime API