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

  • 🎬 Video
  • ℹ️ Published 2 years ago
preview_player
UC42pOSNg804f1wCcj7qL0mA

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:



💬 Comments
Author

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.

Author — Kenneth

Author

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

Author — Sanabil

Author

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

Author — Kerwin So

Author

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

Author — Gleford Banglayan

Author

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

Author — The Color Blue

Author

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.

Author — Old School Math

Author

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

Author — Aces

Author

Thanks for the help! Java is an interesting language so far, and this definitely helped me see things a bit better.

Author — Joseph Stewart

Author

This is amazing.The explanation is really easy to follow and understand. I hope many more people can watch and subscribe. Thanks for the tutorial

Author — Masika Jenniffer

Author

Cool video. So informative yet so clear and easy to understand. I’m learning java programming as a hobby language and your explanation is the best I have seen on YouTube!!!

Author — Miigon

Author

Thank you! Your examples are so helpful! Watching how the code actually works in real time and as you write it makes it so much easier to follow. Thank you!

Author — ShamSham

Author

Very clear and detail, it really helps a lot! Will subscribe and hope to see more videos soon!

Author — Sophia

Author

Thank you John for simplifying the subject of Array & ArrayList, please consider doing tutorials with IntelliJ IDEA CE, much appreciated!

Author — TrueNDiary

Author

Thank you John so much for this video. It's really helpful for me to understand differences between array and arraylist.

Author — Bằng Lê

Author

I love your content, please keep it up. Question though ... I've found that when dealing with data coming from a database, that it is easier for me to populate a double dimensional array and reference it in a row/col format rather than using ArrayList. Would you mind explaining how you do that in an ArrayList?
Also, if you would make a course on how to use JavaFX with ScreenBuilder, I'd be the first in line to pay for it. Please take my money!!!! O__O

Author — Leopoldo Gonzalez

Author

Yet another great walkthrough. This channel has been such a huge help in my own Java journey.

Author — Daniel Bressner

Author

This channel and its content its excellent.. im learning Java and I found it so much easier with these videos than my actual lectures. Also the edition of these videos is great. Please dont ever stop making videos about Java. I honestly think is by far the best there is on youtube, and all divided on little videos so it doesnt feel overwhelming like starting a new course.

Author — Gabriel Micillo

Author

In a simple case, a and very understandable prepared lesson Thank you, John

Author — Asrorkhan.2000 Programmer

Author

Hi John, really great video. Explained everything very well and made it super easy to follow, got a sub from me!

Author — David Mackenzie

Author

Thank you so much, I learned more from this video than a 2 hour lecture from my professor.

Author — Nathan Elliott