2019.9.25 java little knowledge, reflection

What is reflection?

Is a reflection Reflection, Java reflection refers to all the information in the program can get a runtime object.

Since the load for each JVM classcreates a corresponding Classinstance, and stored in the example classof the all information including the class name, package name, parent class, interface implemented, all of the methods, fields, etc., Thus, if the acquisition of a one Classexample, we can, through this Classacquisition to the corresponding instance instance classall information.

By this Classexample of obtaining classcalled reflex process information.

Class examples on how to obtain a class of:

Original link: https://www.liaoxuefeng.com/wiki/1252599548343744/1264799402020448

 

Guess you like

Origin www.cnblogs.com/WildSky/p/11570427.html