JDK new features:修订间差异
创建页面,内容为“=JDK 22= =JDK 21= =JDK 17= =JDK 11= Category:JDK Category:Java” |
|||
第4行: | 第4行: | ||
=JDK 17= | =JDK 17= | ||
== JEP 409: Sealed Classes== | |||
Sealed Classes have been added to the Java Language. Sealed classes and interfaces restrict which other classes or interfaces may extend or implement them. | |||
Sealed Classes were proposed by JEP 360 and delivered in JDK 15 as a preview feature. They were proposed again, with refinements, by JEP 397 and delivered in JDK 16 as a preview feature. Now in JDK 17, Sealed Classes are being finalized with no changes from JDK 16. | |||
For further details, see [https://openjdk.java.net/jeps/409 JEP 409].<ref>https://www.oracle.com/java/technologies/javase/17-relnote-issues.html</ref> | |||
=JDK 11= | =JDK 11= |
2024年9月18日 (三) 03:34的版本
JDK 22
JDK 21
JDK 17
JEP 409: Sealed Classes
Sealed Classes have been added to the Java Language. Sealed classes and interfaces restrict which other classes or interfaces may extend or implement them.
Sealed Classes were proposed by JEP 360 and delivered in JDK 15 as a preview feature. They were proposed again, with refinements, by JEP 397 and delivered in JDK 16 as a preview feature. Now in JDK 17, Sealed Classes are being finalized with no changes from JDK 16.
For further details, see JEP 409.[1]