Module java.base

Class Method

java.lang.Object
All Implemented Interfaces:
AnnotatedElement, GenericDeclaration, Member

public final class Method extends Executable
A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).

A Method permits widening conversions to occur when matching the actual parameters to invoke with the underlying method's formal parameters, but it throws an IllegalArgumentException if a narrowing conversion would occur.

Since:
1.1
See Also: