Skip to main content

Java Release

# 检测 class 文件版本
javap -verbose MyClass | grep "major"
versionmajorreleasenote
Java 25692025-09LTS
Java 24682025-03
Java 23672024-09-18
Java 22662024-03
Java 21652023-09LTS
Java 20642023-03
Java 19632022-09
Java 18622022-03
Java 17612021-09LTS
Java 16602021-03
Java 15592020-09
Java 14582020-03
Java 13572019-09
Java 12562019-03
Java 11552018-09LTS
Java 10542018-03
Java 9532017-09
Java 8522014-03LTS
Java 7512011-07
Java 6502006-12
Java 5492004-09
Java 1.4482002-02
Java 1.3472000-05
Java 1.2461998-12
Java 1.11997-02
Java 1.01996-01

Java 23

  • 455: Primitive Types in Patterns, instanceof, and switch (Preview)
  • 466: Class-File API (Second Preview)
  • 467: Markdown Documentation Comments
  • 469: Vector API (Eighth Incubator)
  • 473: Stream Gatherers (Second Preview)
  • 471: Deprecate the Memory-Access Methods in sun.misc.Unsafe for Removal
  • 474: ZGC: Generational Mode by Default
  • 476: Module Import Declarations (Preview)
  • 477: Implicitly Declared Classes and Instance Main Methods (Third Preview)
  • 480: Structured Concurrency (Third Preview)
  • 481: Scoped Values (Third Preview)
  • 482: Flexible Constructor Bodies (Second Preview)
  • 参考

Java 6