I want to validate a parameter sent to a method, it must be an interface type. What to ask?
void (Class interfaceType){ if (thisisnotaninterface){
For a normal java object you can always use instanceof.
instanceof
If Test implements Testable
Test test = new Test();
test instanceof Testable will be true
test instanceof Testable