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.
About Question enthuware.ocajp.i.v7.2.1295 :
Moderator: admin
-
Nisim123
- Posts: 42
- Joined: Mon Jan 20, 2014 2:26 pm
- Contact:
About Question enthuware.ocajp.i.v7.2.1295 :
Hi, well, i must say this is strange, i've read lately in the jls (15.20.2) that:

Who is online
Users browsing this forum: No registered users and 94 guests