Question: Which statements are true? ( Choose two ) An interface works with the instanceof operator.Both interface and class references can be cast to either type

Which statements are true? (Choose two)An interface works with the instanceof operator.Both interface and class references can be cast to either type An interface reference cannot be cast to the class type.An interface reference provides access to all public methods of the class. An interface reference cannot be cast to another interface type. A class reference cannot be cast to the interface type.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!