Upcasting and Downcasting in Java - Full Tutorial

Coding with John October 4, 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

Learn about Upcasting and Downcasting in Java! Full tutorial with concrete examples. In Java, upcasting and downcasting are used along with method overriding to do some really cool things. But what exactly is upcasting, what is downcasting, and how do you use them in your Java programs? When can you upcast, and when can you downcast? What do you need to know to use upcasting and dowcasting safely? We'll talk about all of that and more beginner-friendly Java tutorial video. 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 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

You May Also Like

Java Developer's Essential Tools

AI-recommended products based on this video

Loading...
It's Not Easy Being a Bunny: An Early Reader Book for Kids

It's Not Easy Being a Bunny: An Early Reader Book for Kids

(20,165)
$11.76$4.78
FREE delivery Thu, Apr 9 on your first order
Loading...
Little Blue Truck's Springtime: An Easter And Springtime Book For Kids – An Interactive Adventure with Baby Animals

Little Blue Truck's Springtime: An Easter And Springtime Book For Kids – An Interactive Adventure with Baby Animals

(16,419)
$17.50$1.39
FREE delivery Mon, Apr 13 on your first order
Loading...
Happy Easter, Little Critter (Little Critter): An Easter Book for Kids and Toddlers

Happy Easter, Little Critter (Little Critter): An Easter Book for Kids and Toddlers

(3,295)
$4.99
FREE delivery Sun, Apr 12 on your first order
Loading...
Happy Valentine's Day, Mouse!: A Lovely Valentine's Day Book for Kids (Ages 4-8)

Happy Valentine's Day, Mouse!: A Lovely Valentine's Day Book for Kids (Ages 4-8)

(5,822)
$9.99
$5.90 delivery Wed, Feb 11
Loading...
MT7601 USB Adapter USB Antenna, Computer Adapter USB Adapter with Integrated Antenna for Windows Desktop Laptop

MT7601 USB Adapter USB Antenna, Computer Adapter USB Adapter with Integrated Antenna for Windows Desktop Laptop

(11)
$11.02
FREE delivery Sun, Jun 22 on your first order
Loading...
BrosTrend 1200Mbps USB WiFi Adapter for Windows 11/10/8/7/XP of PC Desktop Laptop, Dual Band 5GHz 867Mbps, 2.4GHz 300Mbps, USB 3.0, Network Card WLAN

BrosTrend 1200Mbps USB WiFi Adapter for Windows 11/10/8/7/XP of PC Desktop Laptop, Dual Band 5GHz 867Mbps, 2.4GHz 300Mbps, USB 3.0, Network Card WLAN

(3,063)
$29.99
FREE delivery Sun, Jun 22 on your first order
Loading...
BrosTrend AX300 WiFi 6 USB WiFi Adapter for PC, Nano Size WiFi Dongle for Laptop Desktop, USB Wireless Adapter for Windows 11/10/7, 2.4GHz Only, 286Mbps, Wireless Network Adapter, OFDMA (NOT for MAC)

BrosTrend AX300 WiFi 6 USB WiFi Adapter for PC, Nano Size WiFi Dongle for Laptop Desktop, USB Wireless Adapter for Windows 11/10/7, 2.4GHz Only, 286Mbps, Wireless Network Adapter, OFDMA (NOT for MAC)

(379)
$18.99
FREE delivery Sun, Jun 22 on your first order
Loading...
AC600 Nano USB WiFi Adapter for Desktop PC/Laptop, Dual-Band (5GHz, 2.4GHz) Wireless 802.11ac MU-MIMO Network Adapter for Windows & Mac OS, Mini Travel Size WiFi Dongle

AC600 Nano USB WiFi Adapter for Desktop PC/Laptop, Dual-Band (5GHz, 2.4GHz) Wireless 802.11ac MU-MIMO Network Adapter for Windows & Mac OS, Mini Travel Size WiFi Dongle

(2)
$14.98
FREE delivery Sun, Jun 22 on your first order
Loading...
JOREST 38Pcs Small Precision Screwdriver Set, Tool Gifts for Men, Christmas Gifts for him with Torx T5, T6, Repair Tool Kit for MacBook, Computer, Laptop, iPhone, PS4 PS5, Xbox, Switch, Glasses

JOREST 38Pcs Small Precision Screwdriver Set, Tool Gifts for Men, Christmas Gifts for him with Torx T5, T6, Repair Tool Kit for MacBook, Computer, Laptop, iPhone, PS4 PS5, Xbox, Switch, Glasses

(43,599)
$14.07
FREE delivery Thu, Nov 27 on your first order
1K+ bought in past month
Loading...
LEGO Icons Leonardo da Vinci's Flying Machine DIY Kit - Ornithopter Building Set for Adults, Ages 18+ - Craft for Home or Office Decor with Display Stand - Gift Idea - 10363

LEGO Icons Leonardo da Vinci's Flying Machine DIY Kit - Ornithopter Building Set for Adults, Ages 18+ - Craft for Home or Office Decor with Display Stand - Gift Idea - 10363

(185)
$49.98
PrimeFREE delivery Sat, Jun 14
200+ bought in past month
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
BrosTrend Linux WiFi Adapter for Ubuntu, Mint, Debian, Lubuntu, Xubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, 1200Mbps, 5GHz/2.4GHz, Long Range 2 X 5dBi External Antennas, USB3.0

BrosTrend Linux WiFi Adapter for Ubuntu, Mint, Debian, Lubuntu, Xubuntu, Mate, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10, 1200Mbps, 5GHz/2.4GHz, Long Range 2 X 5dBi External Antennas, USB3.0

(1,644)
$46.99
FREE delivery Sun, Jun 22
Loading...
BrosTrend 650Mbps Linux WiFi Adapter for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Xubuntu, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10/8/7/XP 5G/2.4G

BrosTrend 650Mbps Linux WiFi Adapter for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Xubuntu, Zorin, PureOS, Raspberry Pi 2+, Windows 11/10/8/7/XP 5G/2.4G

(1,832)
$29.99
FREE delivery Sun, Jun 22 on your first order
Loading...
BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

(180)
$22.99
FREE delivery Sun, Jun 22 on your first order
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

BrosTrend AX300 Nano WiFi 6 Linux Compatible WiFi Adapter for PC and Raspberry Pi 2+, 2.4GHz Only, 286Mbps, USB WiFi Dongle for Ubuntu, Debian, Mint, Kubuntu, Lubuntu, Zorin, Xubuntu, Windows 11/10/7

(180)
$22.99
FREE delivery Sun, Jun 22 on your first order
Loading...
Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen Fitness Watch with Sleep Heart Rate Monitor, 112+ Sports Modes, IP68 Waterproof Activity Trackers for Android iOS, Black

Smart Watch for Men Women Bluetooth Call, 1.85" HD Touch Screen Fitness Watch with Sleep Heart Rate Monitor, 112+ Sports Modes, IP68 Waterproof Activity Trackers for Android iOS, Black

(89)
$21.98
FREE delivery Fri, Dec 19 on your first order
Loading...
Wireless Earbuds, Bluetooth Headphones 5.3 HiFi Stereo Ear Buds, 80H Bluetooth Earbuds with Dual LED Display Charging Case, IPX7 Waterproof Earphones for Android iOS

Wireless Earbuds, Bluetooth Headphones 5.3 HiFi Stereo Ear Buds, 80H Bluetooth Earbuds with Dual LED Display Charging Case, IPX7 Waterproof Earphones for Android iOS

(111)
$26.99
Prime
400+ bought in past month
Loading...
Air Tracker Tags-4 Pack: Smart Bluetooth Tracker, Item Finder Works with Apple Find My (iOS Only) App, Trakcer Tag Locator for Keys, Luggage, Satchel, Backpack etc. (Not for Android Devices)

Air Tracker Tags-4 Pack: Smart Bluetooth Tracker, Item Finder Works with Apple Find My (iOS Only) App, Trakcer Tag Locator for Keys, Luggage, Satchel, Backpack etc. (Not for Android Devices)

(441)
$49.99
FREE delivery Sat, Sep 13
2K+ bought in past month
Loading...
SAMSUNG EVO Select Micro SD-Memory-Card + Adapter, 128GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME128SA/AM) [Canada Version]

SAMSUNG EVO Select Micro SD-Memory-Card + Adapter, 128GB microSDXC 160MB/s Full HD & 4K UHD, UHS-I, U3, A2, V30, for Android Smartphones, Tablets, Nintendo-Switch (MB-ME128SA/AM) [Canada Version]

(12,472)
$19.99$18.59
FREE delivery Sun, Aug 10 on your first order
400+ bought in past month