<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Java 24 on 隔叶黄莺 Yanbin's Blog - 软件编程实践</title><link>https://yanbin.blog/tags/java-24/</link><description>Recent content in Java 24 on 隔叶黄莺 Yanbin's Blog - 软件编程实践</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>yabqiu@gmail.com (Yanbin Qiu)</managingEditor><webMaster>yabqiu@gmail.com (Yanbin Qiu)</webMaster><copyright>Yanbin 隔叶黄莺</copyright><lastBuildDate>Sun, 12 Apr 2026 13:30:00 -0500</lastBuildDate><atom:link href="https://yanbin.blog/tags/java-24/index.xml" rel="self" type="application/rss+xml"/><item><title>Java 24 新特性学习</title><link>https://yanbin.blog/java-24-new-features/</link><pubDate>Sun, 12 Apr 2026 13:30:00 -0500</pubDate><author>yabqiu@gmail.com (Yanbin Qiu)</author><guid>https://yanbin.blog/java-24-new-features/</guid><description>
&lt;p&gt;Java 24 也是一个过渡版本, 还是到下面两个链接中找相应的更新&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.oracle.com/java/technologies/javase/24all-relnotes.html#JSERN24"&gt;JDK 24 Release Notes - Major New Functionality&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://openjdk.org/projects/jdk/24/"&gt;OpenJDK JDK 24 Features&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;IntelliJ IDEA 对 Java 24 Language level 描述是&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;24 - No new language features&lt;/li&gt;
&lt;li&gt;24 (Preview) - Flexible constructor bodies, simple source files, etc.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;把上面第二个链接中的特性列出来&lt;/p&gt;
&lt;div style="display: flex;font-size: 14px;"&gt;
&lt;div style="flex: 1;"&gt;
&lt;ul&gt;
&lt;li&gt;404: &lt;a href="https://openjdk.org/jeps/404"&gt;Generational Shenandoah (Experimental)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;450: &lt;a href="https://openjdk.org/jeps/450"&gt;Compact Object Headers (Experimental)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;472: &lt;a href="https://openjdk.org/jeps/472"&gt;Prepare to Restrict the Use of JNI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;475: &lt;a href="https://openjdk.org/jeps/475"&gt;Late Barrier Expansion for G1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;478: &lt;a href="https://openjdk.org/jeps/478"&gt;Key Derivation Function API (Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;479: &lt;a href="https://openjdk.org/jeps/479"&gt;Remove the Windows 32-bit x86 Port&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;483: &lt;a href="https://openjdk.org/jeps/483"&gt;Ahead-of-Time Class Loading &amp; Linking&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;484: &lt;a href="https://openjdk.org/jeps/484"&gt;Class-File API&lt;/a&gt; &lt;strong style="color: red"&gt;*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;485: &lt;a href="https://openjdk.org/jeps/485"&gt;Stream Gatherers&lt;/a&gt; &lt;strong style="color: red"&gt;*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;486: &lt;a href="https://openjdk.org/jeps/486"&gt;Permanently Disable the Security Manager&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;487: &lt;a href="https://openjdk.org/jeps/487"&gt;Scoped Values (Fourth Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;488: &lt;a href="https://openjdk.org/jeps/488"&gt;Primitive Types in Patterns, instanceof, and switch (Second Preview)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div style="flex: 1;"&gt;
&lt;ul&gt;
&lt;li&gt;489: &lt;a href="https://openjdk.org/jeps/489"&gt;Vector API (Ninth Incubator)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;490: &lt;a href="https://openjdk.org/jeps/490"&gt;ZGC: Remove the Non-Generational Mode&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;491: &lt;a href="https://openjdk.org/jeps/491"&gt;Synchronize Virtual Threads without Pinning&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;492: &lt;a href="https://openjdk.org/jeps/492"&gt;Flexible Constructor Bodies (Third Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;493: &lt;a href="https://openjdk.org/jeps/493"&gt;Linking Run-Time Images without JMODs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;494: &lt;a href="https://openjdk.org/jeps/494"&gt;Module Import Declarations (Second Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;495: &lt;a href="https://openjdk.org/jeps/495"&gt;Simple Source Files and Instance Main Methods (Fourth Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;496: &lt;a href="https://openjdk.org/jeps/496"&gt;Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;497: &lt;a href="https://openjdk.org/jeps/497"&gt;Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;498: &lt;a href="https://openjdk.org/jeps/498"&gt;Warn upon Use of Memory-Access Methods in sun.misc.Unsafe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;499: &lt;a href="https://openjdk.org/jeps/499"&gt;Structured Concurrency (Fourth Preview)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;501: &lt;a href="https://openjdk.org/jeps/501"&gt;Deprecate the 32-bit x86 Port for Removal&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Java 24 中列出的特性恰如其版本一样，有 24 条，因其是一个过渡版本，多数为非正式特性，也就为什么 IntelliJ IDEA 从语言特性上把 Java 标记为
No new language features. 其实也不然，个人觉得有两个正式特性值得关注，即 Class-File API 和 Stream Gathers。&lt;/p&gt;</description></item></channel></rss>