Java SE Review Java Reflection

Today's Catalog

        1. The basic concept of reflection

        2. Basic use of Java Class

        3. Obtain the basic structure of the class through reflection

        4. Call methods and manipulate properties through reflection

The basic concept of reflection

        In general, if we know a class, we can create objects through this class; but if we need to find a class through an object, then reflection comes in handy. The core of java reflection implementation is the Class class java.lang package.

Second, the basic use of Java Class


Third, obtain the basic structure of the class through reflection

Fourth, call methods and manipulate properties through reflection


Add Xiaobian WeChat to get free resources, QR code


To use the tools, pay attention to the official get it directly for free :


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325641681&siteId=291194637