I believe you can cast an Object class to any class in Java. Because Object is super, then this must be down casting ... But, why can't we down cast any other base class to its subclass?
i.e
i.e
Code:
class Mamal {
}
class Cat extends Mamal {
}
void downCast() {
Mamal m = new Mamal();
Cat c = (Cat) m; // class cast exception?
c = (Cat) new Object(); //?????
}