Ok your class setup says C is a B and B is a A, which makes C is a A.
The main says variable a is a C (which we know is a B). Then variable a1 cast this to a B (variable a's parent class B which is a A).
You should try down-casting... then ClassClassException should throw. I let you figure out the code to
test that.