Consider this class hierarchy:
Book extends Goods
Book implements Taxable
As we know, there is a relationship
"Behaves like..."
That's what what I would say. Not is something, but behaves like something. Or as an alternative "can something", but that's more specific than behaviour.
This should do:
public static boolean implementsInterface(Object object, Class interf){
return interf.isInstance(object);
}
For example,
java.io.Serializable.class.isInstance("a test string")
evaluates to true.
from: Test if object implements interface