Java 15 Features
Sealed Classes
- Sealed Classes
- Defining the sealed class and all its permitted types in a single file
- Module and package constraint for permitted sub types
- Sealed classes and reflection
Record Classes
- Record classes in Java
- Structure of record definition
- Restrictions with record classes
- More restrictions with using record classes
- Compact constructor for Record classes
- Serialization of Record with circular references
- Reflection support for record classes
Text Blocks
- The Text Blocks
- Text Block Syntax - Deep Dive
- Incidental and essential white spaces in text blocks
- Techniques for including leading white spaces into text blocks
- Techniques for including trailing whitespaces into text blocks
- Tab character in text blocks
- Normalization of platform specific line terminator characters
- Usage of escape sequences in text blocks - '\n'
- Usage of escape sequence in text blocks - \"
- New escape sequence - \s
- New escape sequence - \
- Using -Xlint:text-blocks compiler option
No comments:
Post a Comment