Java Basics 06

1. The reflection process and to achieve effect

 A: Java language compiler will generate after a .class file, the reflection is to find a certain class bytecode file, class methods and attributes. Reflector means to achieve the main four classes: Class (object class), (class constructor) the Constructor

 (Attribute object class) Field, (Method object class) Method. Role: reflection refers to the program itself can obtain information at runtime .

Guess you like

Origin www.cnblogs.com/9797ch/p/11612024.html
Recommended