-
Notifications
You must be signed in to change notification settings - Fork 0
Java concepts
Mark Rose edited this page Dec 31, 2025
·
2 revisions
Showing the last version where the feature was officially introduced, if possible, or the last version previewed or the the version, except that features previewed in Java 21 are shown in that version as well, since that is the version installed on the test phone.
- Modules
- Text blocks (JDK-8236934)
- Sealed Classes
- Records (JEP 395)
- Pattern matching for
instanceof(JEP 394)
- Unnamed variables and patterns (JEP 456)
- Statements Before
super(...) - String Templates
- Primitive Types in Patterns,
instanceof, andswitch - Module Import Declarations (JEP 507)
- Compact source files and instance
mainmethods (JEP 512) - Flexible constructor bodies (JEP 513)