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

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: 2019-07-30T22:30:20+05:30

568 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements