I thought when a class implements an interface, it is saying that it “Can do” whats defined in the interface.I am also under impression that “Is a” or “Type of” notation is for class hierarchy, meaning a class inheriting from superclass. Is my understanding correct?
Share
From the title Question I would say no.
There have been answers saying yes and showed this by using instanceof, however when reading the Java language specification it states.
And a class implementing an interface won’t receive the binary name of the interface.