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

Coding with John February 24, 2021
Video Thumbnail
Coding with John Logo

Coding with John

@codingwithjohn

About

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. Learn or improve your Java by watching it being coded live!

Video Description

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 https://amzn.to/36AfdUu 📕 One of my favorite programming books, Clean Code by Robert Martin https://amzn.to/3GTPVhf 🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial http://www.audibletrial.com/johncleancode 🖥️Standing desk brand I use for recording (get a code for $30 off through this link!) https://bit.ly/3QPNGko 📹Phone I use for recording: https://amzn.to/3HepYJu 🎙️Microphone I use (classy, I know): https://amzn.to/3AYGdbz Donate with PayPal (Thank you so much!) https://www.paypal.com/donate/?hosted_button_id=3VWCJJRHP4WL2 ☕Complete Java course: https://codingwithjohn.thinkific.com/courses/java-for-beginners https://codingwithjohn.com Full source code available here: https://codingwithjohn.com/array-vs-arraylist-source

You May Also Like

PC Gaming Essentials Under $500

AI-recommended products based on this video

Loading...
Beelink SER3 Mini Desktop PC with AMD Ryzen 3 3200U 2C/4T, 16GB DDR4 500GB PCIE3.0 X4 SSD, Dual Display Output, WiFi6/BT5.2 W-11 Pro Mini Gaming Computer

Beelink SER3 Mini Desktop PC with AMD Ryzen 3 3200U 2C/4T, 16GB DDR4 500GB PCIE3.0 X4 SSD, Dual Display Output, WiFi6/BT5.2 W-11 Pro Mini Gaming Computer

(239)
$459.00
FREE delivery Sat, Jan 3
Loading...
Beelink SER3 Mini PC, AMD Ryzen 3 3200U(14nm, 2C/4T) up to 3.5GHz, Mini Gaming Computer 16GB DDR4 RAM 500GB PCIE3.0 X4 SSD, Micro PC 4K@60Hz Dual Display, Mini Computer WiFi6/BT5.2/HTPC/W-11 Pro

Beelink SER3 Mini PC, AMD Ryzen 3 3200U(14nm, 2C/4T) up to 3.5GHz, Mini Gaming Computer 16GB DDR4 RAM 500GB PCIE3.0 X4 SSD, Micro PC 4K@60Hz Dual Display, Mini Computer WiFi6/BT5.2/HTPC/W-11 Pro

(1,251)
$329.00
FREE delivery Sat, Jan 3
Loading...
Beelink SER3 Mini PC, AMD Ryzen 3 3200U(up to 3.5GHz) 2C/4T, Mini Computer 16GB DDR4 RAM 500GB SSD, Mini Desktop Computer 4K@60Hz Dual HDMI Display WiFi6/BT5.2/WOL/HTPC/W-11 Pro

Beelink SER3 Mini PC, AMD Ryzen 3 3200U(up to 3.5GHz) 2C/4T, Mini Computer 16GB DDR4 RAM 500GB SSD, Mini Desktop Computer 4K@60Hz Dual HDMI Display WiFi6/BT5.2/WOL/HTPC/W-11 Pro

(815)
$329.00
FREE delivery Sat, Jan 3
50+ bought in past month
Loading...
Corsair Vengeance LPX 32GB (2 X 16GB) DDR4 3200 (PC4-25600) C16 1.35V Desktop Memory - Black
Best Seller

Corsair Vengeance LPX 32GB (2 X 16GB) DDR4 3200 (PC4-25600) C16 1.35V Desktop Memory - Black

(16,675)
$112.99$101.69
FREE delivery Sun, Aug 10
500+ bought in past month
Loading...
SSD SATA mSATA 500GB Dogfish Internal Solid State Drive High Performance Hard Drive Desktop Laptop SATA III 6Gb/s Includes SSD 16GB 32GB 60GB 64GB 120GB 128GB 240GB 250GB 480GB 500GB (500GB, MSATA)

SSD SATA mSATA 500GB Dogfish Internal Solid State Drive High Performance Hard Drive Desktop Laptop SATA III 6Gb/s Includes SSD 16GB 32GB 60GB 64GB 120GB 128GB 240GB 250GB 480GB 500GB (500GB, MSATA)

(61)
$64.60
PrimeFREE delivery Sat, Jun 14
Loading...
SSD SATA mSATA 120GB Dogfish Internal Solid State Drive High Performance Hard Drive Desktop Laptop SATA III 6Gb/s Includes SSD 16GB 32GB 60GB 64GB 120GB 128GB 240GB 250GB 480GB 500GB (120GB, MSATA)

SSD SATA mSATA 120GB Dogfish Internal Solid State Drive High Performance Hard Drive Desktop Laptop SATA III 6Gb/s Includes SSD 16GB 32GB 60GB 64GB 120GB 128GB 240GB 250GB 480GB 500GB (120GB, MSATA)

(100)
$25.65
FREE delivery Sat, Jun 14 on your first order
Loading...
Seagate Portable 4TB External Hard Drive HDD – USB 3.0 for PC, Mac, Xbox, & PS4 - 1-Year Rescue Service (STGX4000400)
Amazon's Choice

Seagate Portable 4TB External Hard Drive HDD – USB 3.0 for PC, Mac, Xbox, & PS4 - 1-Year Rescue Service (STGX4000400)

(252,140)
$144.99$130.49
FREE delivery Tue, Jun 17
500+ bought in past month
Loading...
Seagate Game Drive 4TB External Hard Drive Portable HDD - Compatible With PS4 (STGD4000400) blue

Seagate Game Drive 4TB External Hard Drive Portable HDD - Compatible With PS4 (STGD4000400) blue

(11,894)
$222.28
Loading...
EVGA GeForce GTX 1660 Ti XC Ultra Gaming, 6GB GDDR6, HDB Fan Graphics Card 06G-P4-1267-KR

EVGA GeForce GTX 1660 Ti XC Ultra Gaming, 6GB GDDR6, HDB Fan Graphics Card 06G-P4-1267-KR

(1,163)
$1,970.86
FREE delivery Feb 26 - Mar 5
Loading...
CeraVe AM Face Moisturizer SPF 50, Facial Moisturizing Lotion with Sunscreen, Hyaluronic Acid & Niacinamide, Broad Spectrum UVA+UVB Protection, No White Cast, Recommended by Dermatologists, 89mL

CeraVe AM Face Moisturizer SPF 50, Facial Moisturizing Lotion with Sunscreen, Hyaluronic Acid & Niacinamide, Broad Spectrum UVA+UVB Protection, No White Cast, Recommended by Dermatologists, 89mL

(12)
$19.99
FREE delivery Sun, Mar 29 on your first order
1K+ bought in past month
Loading...
Corsair CP-9020140-UK HX1200 1200 W 80+ Platinum Fully Modular Power Supply Unit - Black

Corsair CP-9020140-UK HX1200 1200 W 80+ Platinum Fully Modular Power Supply Unit - Black

(179)
$1,240.77
FREE delivery Oct 14 - 21
Loading...
Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black
Best Seller

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

(17,871)
$27.98$22.38
FREE delivery Tue, Oct 14 on your first order
500+ bought in past month
Loading...
Redragon M612 Predator RGB Gaming Mouse, 8000 DPI Wired Optical Mouse with 11 Programmable Buttons & 5 Backlit Modes, Software Supports DIY Keybinds Rapid Fire Button

Redragon M612 Predator RGB Gaming Mouse, 8000 DPI Wired Optical Mouse with 11 Programmable Buttons & 5 Backlit Modes, Software Supports DIY Keybinds Rapid Fire Button

(8,052)
$22.49
FREE delivery Thu, Aug 21 on your first order
500+ bought in past month
Loading...
acer Chromebook 315 Laptop | Intel Pentium Silver N6000 | 15.6" Full HD IPS Touch | Intel UHD Graphics | 8GB LPDDR4X | 64GB eMMC | Wi-Fi 6 | DTS Audio | Protective Sleeve | Chrome OS | CB315-4HT-P8PQ

acer Chromebook 315 Laptop | Intel Pentium Silver N6000 | 15.6" Full HD IPS Touch | Intel UHD Graphics | 8GB LPDDR4X | 64GB eMMC | Wi-Fi 6 | DTS Audio | Protective Sleeve | Chrome OS | CB315-4HT-P8PQ

(35)
$449.99
FREE delivery Sun, Jun 15
Loading...
Acer PM161Q Bbmiuux 15.6" Full HD (1920 x 1080) Widescreen Portable IPS Display | AMD FreeSync Technology | 4ms (G to G) | 2 Speakers | USB Type-C Cable and Mini HDMI Cable

Acer PM161Q Bbmiuux 15.6" Full HD (1920 x 1080) Widescreen Portable IPS Display | AMD FreeSync Technology | 4ms (G to G) | 2 Speakers | USB Type-C Cable and Mini HDMI Cable

(149)
$157.04$119.76
FREE delivery Mon, Aug 11
100+ bought in past month
Loading...
acer Enduro T1 ET108-11A-80PZ Rugged Tablet, 8.0" WXGA IPS Touch, MediaTek MT8385 Octa-Core Processor, 4GB LPDDR4, 64GB eMMC, WiFi-5, Front 2MP Webcam, Rear 5MP Webcam, Handstrap, Android 9 Pie

acer Enduro T1 ET108-11A-80PZ Rugged Tablet, 8.0" WXGA IPS Touch, MediaTek MT8385 Octa-Core Processor, 4GB LPDDR4, 64GB eMMC, WiFi-5, Front 2MP Webcam, Rear 5MP Webcam, Handstrap, Android 9 Pie

(29)
$549.34
Loading...
Acer Nitro V 15.6 FHD 144Hz Gaming Laptop, Intel i7-13620H, 32GB DDR5, 1TB SSD, NVIDIA GeForce RTX 4060, Keyboard Backlight, Wi-Fi 6, HD Webcam, Windows 11 Home, Black, 256GB Docking Station Set

Acer Nitro V 15.6 FHD 144Hz Gaming Laptop, Intel i7-13620H, 32GB DDR5, 1TB SSD, NVIDIA GeForce RTX 4060, Keyboard Backlight, Wi-Fi 6, HD Webcam, Windows 11 Home, Black, 256GB Docking Station Set

(105)
$1,655.10
FREE delivery Wed, Jun 18