We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f17ac8 commit 7bfb8fdCopy full SHA for 7bfb8fd
2 files changed
java-21/README.md
@@ -149,9 +149,8 @@ To run each example use: `java --enable-preview --source 21 <FileName.java>`
149
* it can have:
150
* instance and static methods
151
* instance and static fields
152
- * instance and static initializers
153
* the default modifers are the same (package access and instance membership)
154
- * the main difference is will only have an impliticy default zero-paramater constructor
+ * the main difference is will only have an impliticy default zero-paramater constructor and cannot have initializers (static nor instance)
155
* `Class.isSynthetic` method returns true
156
* this JEPs introduces changes to how Java programs are launched:
157
* instance main method:
java-21/UnnamedClassWithInitializers.java
0 commit comments