Java 17 Records - How to get started?

preview_player
Показать описание
I am starting a series on what's new in Java 17, in a wide sense, including also good stuff from earlier Java versions. This will be very good for you if you are running Java 8 or Java 11 mostly, and want to know what's new. In this first part, I'll go through Java 17 installation options, IDE support, and give an example of the awesomeness of the Java 17 Records.

If you like the content here, please click those buttons, and let me know in the comments section. Also, you can affect the upcoming content by telling me what you'd like to see, or asking questions here. Let me know what you think!


Timecodes:
0:00 - Introduction
1:00 - SDKMan and Java 17
5:35 - IDE Support and Java 17
8:20 - CryptoTicker example in old Java style
13:15 - Refactor it using Java 17 Record
16:04 - Conclusion

p.s. If you are working with Records in Spring Boot, I have made an earlier video on how to make it work, and it should still apply with Java 17 - if anything things might be slightly easier for you.

Links to some of my older videos are here:
Рекомендации по теме
Комментарии
Автор

Awesome content. But I have a question does record generate setters too? Also I read that the class variables are by default final which may suggest that they do not generate setters. Can you please clear this up.

ayushgupta
Автор

Nice content. Records as explained by Stephen Hawking!! I wonder about the performance implications of immutable records.

richardday
Автор

Pretty good, but the video is supposed to be about records, and you don’t create the first record until almost 3/4 of the way through.

MrLjw
Автор

He talks a lot and until minute 8 the example begins

CrisR