Suppose the declared type of x is a class, and the declared type of y is an interface.
When is the assignment x = y; legal?
Click to view the answer
A.
An interface may be converted only to a class, and the class must be Object.