Java / Casting
What is auto-up casting and explicit down casting in Java?
An object of sub class type can be automatically casted to super class type. This is called auto-up casting.
An object of super class type should be explicitly casted to sub class type, It is called explicit down casting.
More Related questions...