Downcasting

Casting from superclass to subclass

Syntax

Generally, Explicit Casting and same as Narrowing Conversion of primitive types.

Beware of Class Cast Exception.


Backlinks