Skip to main content

Java 24

Features

Preview & Incubator

  • JEP 488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
  • JEP 492: Flexible Constructor Bodies (Third Preview)
  • JEP 494: Module Import Declarations (Second Preview)
  • JEP 495: Simple Source Files and Instance Main Methods (Fourth Preview)
  • JEP 478: Key Derivation Function API (Preview)
  • JEP 489: Vector API (Ninth Incubator)

Standard

  • JEP 485: Stream Gatherers
    • 正式引入 Stream Gatherers API。
  • JEP 484: Class-File API
    • 正式引入类文件 API。
  • JEP 491: Synchronize Virtual Threads without Pinning
    • 优化虚拟线程同步,消除 Pinning 问题。
  • JEP 490: ZGC: Remove the Non-Generational Mode
    • ZGC 仅保留分代模式。
  • JEP 486: Permanently Disable the Security Manager
    • 永久禁用 Security Manager。
  • JEP 483: Ahead-of-Time Class Loading & Linking
    • 提前类加载和链接,缩短启动时间。
  • JEP 496: Quantum-Resistant Modules (ML-KEM)
  • JEP 497: Quantum-Resistant Modules (ML-DSA)

References