What is the difference between up-casting and down-casting in Java?


Converting a subclass type to a superclass type is known as up-casting.

Converting a superclass type to a subclass type is known as down-casting.

Updated on: 30-Jul-2019

411 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements