资讯

Primitive data types and wrapper classes in Java 21 Java provides a wrapper class for each primitive type, creating a complete object-oriented representation of the language’s fundamental values.
Furthermore, the update seeks to rectify the exclusion of primitive type patterns in the pattern matching for instanceof and switch, which had limited Java's expressiveness.