[Solved] Java – interface -instsnceof

JLS 15.20.2 states: If a cast of the RelationalExpression to the ReferenceType would be rejected as a compile-time error (ยง15.16), then the instanceof relational expression likewise produces a compile-time error. In such a situation, the result of the instanceof expression could never be true. In this case (Intf) obj is not a compile time error … Read more