Chinaunix首页 | 论坛 | 博客
  • 博客访问: 242679
  • 博文数量: 164
  • 博客积分: 60
  • 博客等级: 民兵
  • 技术积分: 1129
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-09 21:55
文章分类

全部博文(164)

文章存档

2017年(2)

2015年(67)

2014年(95)

我的朋友

发布时间:2015-04-29 15:52:17

点击(此处)折叠或打开/* * 通过配置文件运行类中的方法 *  * 反射: *         需要有配置文件配合使用。 *       &nb.........【阅读全文】

阅读(471) | 评论(0) | 转发(0)

发布时间:2015-04-29 15:27:35

点击(此处)折叠或打开public class ReflectDemo {    public static void main(String[] args) throws Exception {        // 获取字节码文件对象   &nb.........【阅读全文】

阅读(1011) | 评论(0) | 转发(0)

发布时间:2015-04-29 12:00:14

点击(此处)折叠或打开package cn.itcast_03;import java.lang.reflect.Constructor;import java.lang.reflect.Field;/* * 通过发生获取成员变量并使用 */public class .........【阅读全文】

阅读(614) | 评论(0) | 转发(0)

发布时间:2015-04-29 11:39:33

点击(此处)折叠或打开/* * 需求:通过反射获取私有构造方法并使用 * private Person(String name){} *  * Person p = new Person("风清扬"); * System.out.println(p); */.........【阅读全文】

阅读(479) | 评论(0) | 转发(0)

发布时间:2015-04-29 11:31:05

点击(此处)折叠或打开/* * 需求:通过反射去获取该构造方法并使用: * public Person(String name, int age, String address) *  * Person p = new Person("林青霞",27,"北京"); * System.out.p.........【阅读全文】

阅读(563) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册