Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 404 Bytes

README.md

File metadata and controls

7 lines (7 loc) · 404 Bytes

Java反射的常用方法

ReflectDemo1 认识类类型

ReflectDemo2 Class.forName动态加载类

ReflectDemo3 Method,通过反射得到类中方法的信息

ReflectDemo4 通过反射得到成员变量与构造函数

ReflectDemo5 方法反射 method.invoke(),方法名+参数列表类型可唯一确定一个方法

ReflectDemo6 通过方法反射,认识集合泛型