Java Features: Records

Pubblicato il: 19 febbraio 2022
sul canale di: Popcorn Time
10
0

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...


In questa pagina del sito puoi guardare il video online Java Features: Records della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Popcorn Time 19 febbraio 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 10 volte e gli è piaciuto 0 spettatori. Buona visione!