I want to validate a parameter sent to a method, it must be an interface type. What to ask?
void (Class interfaceType){ if (thisisnotaninterface){
Just use Class#isInterface() to check that
And seriously, you should be reading the Javadocs before asking here.