Reflection
API provide the facility find out the details of a class at execution time as
well as facility to load a class, to create an instance of a class to invoke a
constructor or method on a class object to get and set value of a field etc.
java.lang.reflect
package provide classes of reflection API. Commonly use class of Reflection API
Method:
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).
Field:
A Field
provides information about, and dynamic access to, a single field of a class or
an interface. The reflected field may be a class (static) field or an instance
field.
Constructor:
Constructor
provides information about and access to, a single constructor for a class.