We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a4e1c commit d84f043Copy full SHA for d84f043
docs/java/new-features/java新特性总结.md
@@ -864,7 +864,7 @@ System.out.println(encodedString);
864
865
### 预览新特性
866
867
-#### record 关键字
+#### 密封类
868
869
Java 15 对 Java 14 中引入的预览新特性进行了增强,主要是引入了一个新的概念 **密封类(Sealed Classes)。**
870
@@ -892,11 +892,6 @@ public non-sealed class Manager extends Person {
892
893

894
895
-在 `java.lang.Class` 增加了两个公共方法用于获取 `Record` 类信息:
896
-
897
-1. `RecordComponent[] getRecordComponents()`
898
-2. `boolean isRecord()`
899
900
#### instanceof 模式匹配
901
902
Java 15 并没有对此特性进行调整,继续预览特性,主要用于接受更多的使用反馈。
0 commit comments