data about the program during its execution. Reflection allows us to investigate the information about the fields , methods and constructors of classes. Reflection in Java by using Java Reflection API. This API consists of classes java.lang package and java.lang.reflect.