The following describes selected improvements of the Java API. See the Java 16 release notes.
Unresolved directive in <stdin> - include::DayPeriodSupport.adoc[leveloffset=+1] Unresolved directive in <stdin> - include::StreamApi.adoc[leveloffset=+1]
The following describes selected improvements of the Java API. See the Java 16 release notes.
Unresolved directive in <stdin> - include::DayPeriodSupport.adoc[leveloffset=+1] Unresolved directive in <stdin> - include::StreamApi.adoc[leveloffset=+1]
The following describes selected improvements of the Java language. See the Java 16 release notes. See Java Language Updates for Java SE 16.
With JEP 394, Pattern Matching for instanceof introduced in {java14} is moving from preview state to final availability.
With JEP 395, Record introduced in {java14} is moving from preview state to final availability.
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/sixteen/lang/Record.java[tag=record]A record is implicitly final,
has a canonical constructor equal to the header,
has a toString(), equals(), and hashCode() method.
Each member has an accessor method, e.g x() or y().
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/ten/api/CollectorsApi.java[tag=toUnmodifiableList]With Collectors.toUnmodifiableList() we can now convert a list into an immutable list.
Unresolved directive in <stdin> - include::../../../../../../../../src/main/java/ten/api/CollectorsApi.java[tag=toUnmodifiableSet]With Collectors.toUnmodifiableSet() we can now convert a set into an immutable set.