Reflective learning Java

Java reflection mechanism is in the operating state, for any one class (class files) are to know all the properties and methods of this class.
For any object, you can call any of its methods and properties

Reflecting actual actions to be done
1, load the specified class file
2, object instance
3, instance objects obtained by the object field, and the field objects and access set
4, target acquisition method by instantiating the object, and the method transfer

 

Guess you like

Origin www.cnblogs.com/WarBlog/p/12155234.html