Java 14 | Record | Store Immutable Data in Compact Way |

preview_player
Показать описание
JDK 14 introduces records, which are a new kind of type declaration. Like an enum, a record is a restricted form of a class. It’s ideal for "plain data carriers," classes that contain data not meant to be altered and only the most fundamental methods such as constructors and accessors.
Рекомендации по теме
welcome to shbcf.ru