摘要:
如何获得class?--有三种方法:类名.Class,对象.getClass(),Class.forName("完整类名(eg:java.lang.String)")。reflect中的类有Field,Method,Constructor,使用时很相似;如何使用反射设置一个类中各属性的值?BeanUtils类:package com.arj.reflection;import java.beans.BeanInfo;import java.beans.IntrospectionException;import java.beans.Introspector;import j 阅读全文