Records In Java - Full Tutorial - The Best New Java Feature You're Not Using

preview_player
Показать описание
How to use Records in Java!

Records are a new concept added to the Java language as a preview feature in Java 14, and in a full release in Java 16. In this intermediate Java programming tutorial, we will talk all about when you would want to use Java records, and exactly how to do it.

If you're confused by records in Java, you're in the right place!

Learn or improve your Java by watching it being coded live!

Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java learners.

Let me know what else you'd like to see!

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch

📕 One of my favorite programming books, Clean Code by Robert Martin

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial

🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)

📹Phone I use for recording:

🎙️Microphone I use (classy, I know):

Donate with PayPal (Thank you so much!)

☕Complete Java course:

Рекомендации по теме
Комментарии
Автор

The best person on YouTube that explains java in such a great way

Mahmoudalkasem
Автор

you were the reason i got a 5 on my ap comp sci A exam!! you truly have impacted my education and taught me more than my highschool teacher did in 5 months !

keionvergara
Автор

I recently found out about Records but there are just no good tutorials about it. I'm glad you made one now.

Nanagos
Автор

Congrats on almost reaching 100K. This one should put you over the top.

libertymedicalcommunicatio
Автор

There is a lot of content like this out there, but you are so much better than the rest in terms of tempo, order, quality and presentation, thank you so much! I started studying CS half a year ago and your videos are 5x quicker at explaining the same thing than my prof. Although sometimes there is some depth missing, but it's good that your videos don't get lost in that, that's what makes it so good. Maybe it would be great if there was a playlist for in depth knowledge as well though.

arnddeshives
Автор

please never stop making videos, these are so helpful!

greatprogrammerhsin
Автор

I am advanced in java but it is great to see someone explain it so concise. Amazing explanation on these types of videos. Keep it up!

huskydreaming
Автор

Never thought learning Java would be such a pleasure. A decade ago, I was frustrated with the Java Reference book and left learning java and continued with my day job in DB language. Now, I am learning java without any issues with the help of youtube. Thanks to the youtube community.

shankar
Автор

I've been learning Java in my CS degree for the last three years, I had no idea records were a thing!!! So cool!

BkSMedia
Автор

Quality, effective, efficient and much appreciated content.

leeamraa
Автор

Could you do a video on Consumer, Predicate, and Supplier? I mostly understand what they do, but not when to use them.

iCybqr
Автор

At 5:00 you mention that Java generates a default, no-arg constructor *even if* you don't create other constructors. That isn't quite true, Java creates a no-arg constructor *only if* you don't create other constructors. This is why your fields get red underlines as soon as you manually create the no-arg constructor, because there would be a way to have final fields that aren't initialized as soon as the object is created. Before you manually created the no-arg constructor this wasn't a problem, because Java wouldn't generate one since you already had the previous one created.

pclclau
Автор

The way of teaching is totally different.. thank you so much for the deep knowledge that you are sharing... kindly make tutorial on stream api in future

sameersafi
Автор

Guitars 🎸, drums 🥁, and programming. 💻 Yep! You're definitely part of my tribe. Excellent video! Keep it up.

argonwheatbelly
Автор

This is something new for me and this video has full of information, every single sec is worth it, Thanks John 😊

rohitsharma-xtqe
Автор

I like the style of teaching, very clear examples and no bs, earned a sub...

chenchi
Автор

Explained quite clearly with detailed examples. Excellent tutorial! This is what I needed to start working with Records in Java.

pradiptaspointofview
Автор

Very elaborate and to the point explanation, thank you!

nishantsirwani
Автор

Just wow John, you are awesome. Clear voice. Thank you so much...

ArjunKumar-zukl
Автор

Hey man, this tutorial on Java Records is good! You broke it down so clearly, the basic parts makes sense. Thanks a lot for this awesome content!

Edit : Understood 50% of he video clearly and the rest 50% a little bit....revisiting Java...and Learning..

ShreyasS-bnlm