a downcast can change dynamic type of object.
why statement false? because, there aren't static , dynamic types in java?
moreover, static type , dynamic types of object?
as @controlaltdel stated, type of object type. downcasting doesn't change anything.
once created, classes type doesn't change. no way in java.
the static type type of reference variable holding. dynamic type instance points to.
you can change object that's pointed reference , move , down hierarchy, can't ever change type of instance.
Comments
Post a Comment