Array vs. ArrayList in Java Tutorial - What's The Difference?

preview_player
Показать описание
Arrays vs. ArrayLists - What's the difference? How do you use each of them, and which one should you use and why?

We'll go in-depth about the similarities and differences between Array and ArrayList in Java, and talk about how to create them, add elements, remove elements, and more.

This is a beginner friendly beginner's Java coding lesson tutorial, where we'll talk all about using Arrays and ArrayLists.

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

Hey, I'm John! I'm a Lead Java Software Engineer who has been in the industry for over a decade. I love sharing what I've learned over the years in a way that's understandable.

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:

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

Easily top 3 programming teachers on youtube. No joke. You seem to answer the exact questions that a newbie would asks and you answer in such a way that gives exactly the information that is needed.

whatisahandleeee
Автор

PLEASE DONT STOP TEACHING THIS THINGS.. I HAVE WATCHED A LOT OF GUYS LIKE U ON YOUTUBE AND UR ONE OF THE BEST. AND STILL I LOVE JAVA MORE EVEN AFTER MEETING PYTHON

aligmayu
Автор

You explain diamond operators (starting at 4:19) in 20 seconds better than others who have taken over 5 minutes. Well done sir.

kerwinso
Автор

you are going to have million subscribers one day, already telling ya, you teach so well :)

sanabil
Автор

Great video. Two things....it's considered good practice to use the interface on the left side so List<String> instead of ArrayList<String> before the variable name. And while you are right that the ArrayList itself can grow and shrink it's really important to be aware that the array that backs the ArrayList (yes there's an array hiding inside the ArrayList implementation!) does not shrink automatically after the ArrayList has grown...this can be very significant when profiling the memory footprint of an application. Lastly, it would be really good to have a video on why you'd pick a primitive representation over its Object memory usage, etc.

HuwJones
Автор

YouTube algo sucks for not recommending this wonderful video for Java learner! But better late than never!

lootster
Автор

This dude is the man. His videos are better than others because he answers the question why. Why do we do it this way? Keep it up dude.

mkn
Автор

I love how my school explains these things in 10 videos and it takes over 5 hours to watch all of them, while I can easily learn it from your video in just 18 min

anityyu
Автор

I freaking love the way you approach the subject on your videos... It's so simple and yet, complete; I can understand everything so easily.

filipemelo
Автор

Thanks so much for sharing this video! We watched this in my AP CS A course after finishing a unit on Arrays and you did a great job of giving us an intro to ArrayLists.

oldschoolmath
Автор

Dude, I swear to God how can you explain so well that I didn't get distracted. bro when my teachers explain I lose focus so fast, dude keep it going you are amazing.

carlosgranda
Автор

Watching your videos helps me understand so much better. You explain everything perfectly and add in the little important details that most books or instructors seem to not mention,

Thank you!

robertjr
Автор

My Exam is on Monday and my teacher did not cover this topic on JAVA. By watching this video I'm prepared for my Exam, thanks very much.

JACINTADOITA
Автор

as I was watching I thought "BUT-BUT you cant DO THAT!" and then you wrote "//you can't do that "
and i got just a nice ass dopamine hit, thank you.

bbalmer
Автор

I was not expecting such a easy to understand, and great tutorial like this! thank you so much

thecolorblue
Автор

You are one of the smartest teachers on youtube… I love your teaching style…Whenever I want to learn a java topic, I first search it on your channel because you explain every topic in a very simple way. Not too much of information not too less… just as much as needed for a beginner… My favorite ❤️

sajidamoin
Автор

Just searched for a good video and wow I could not have found a better one. Thanks a lot.

fridolinmeier
Автор

Thanks dude, you make everything so simple!

mastermatt
Автор

you are 100% my go to person on YouTube for beginner tutorials -> explanations are always really beginner friendly and so clear and easily digestible. Thanks a ton man

aces
Автор

John, I discovered you yesterday and you are one of the best!

ralphgore