So in this question can we cast an object of class D to be an A?At run time, the result of the instanceof operator is true if the value of the
RelationalExpression is not null and the reference could be cast (§15.16) to the
ReferenceType without raising a ClassCastException. Otherwise the result is
false.
