A Java Record is a special type of Java class specifically designed to represent a data record, like records returned from a database or remote service. Java Records offer a more concise syntax than defining POJOs the old school way. Java Records is a new feature in Java 14.
Java Records is still a preview features, so we don't know yet if records will stay in Java. In order to use Java Records you must thus switch preview feature on in your Java SDK / IDE.
Java Records are immutable, by the way, so once created you cannot change the values stored in the record instance.
Ressources:
https://docs.oracle.com/en/java/javas...
На этой странице сайта вы можете посмотреть видео онлайн Java Features: Records длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Popcorn Time 19 Февраль 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 10 раз и оно понравилось 0 зрителям. Приятного просмотра!