Printing all methods

Report a typo

The following code tries to print all method names (except inherited) of Example class.

Method[] methods = Example.class.______________();
for(Method method : methods){
    System.out.println("method = " + method.getName());
}

Which name of the method should there be instead of the blank? Enter only the name of this method without parenthesis, like methodName.

Enter a short text
___

Create a free account to access the full topic