Reflection API is used to modify or examine the behavior of methods, classes, interfaces at runtime.
Reflection can be used to get information about –
- 
Class: getClass() is used to get the name of the class 
 
- 
Constructors: getConstructors() is used to get the public constructors of the class to which an object belongs
 
- 
Methods: getMethods() is used to get the public methods of the class to which an object belongs