Java Interview Questions and Answers

 

When can an object reference be cast to an interface reference in Java Programming?

An object reference be cast to an interface reference when the object implements
the referenced interface.

Posted by:Richards