tags: Java

Java Reflection is a process of examining or modifying the run time behavior of a class at run time.

It is used only for IDEs, Debuggers, Test Tools.

java.lang.Class class

The java.lang.Class class performs mainly two tasks:

  • provides methods to get the metadata of a class at run time.
  • provides methods to examine and change the run time behavior of a class.