Reflection in java
Reflection:- Reflection is the way to recognize any class at the runtime even if their name is found at runtime. If at the development time the class name is not known by the developer then we cann't use that class without reflection. The use of class can be load that class, to create the object of that class, invocation of the methods. By Reflection the details of the class can also be obtained such as list of their methods, list of constructors, list of the fields, name of parent class and list of implemented interfaces. Note:- Reflection is meta data of class. According to the Reflection each and every class and members of that class represented by the objects these objects are known as the reflected object or meta object. Through the reflection in any java program we can obtained the meta data. java.lang.Class:- This is a class, In the heap area a separate object of Class class always be created for the each loaded cla