Class对象获取方法

Class对象的生成方式如下:

1.Class.forName("类名字符串")

2.类名.class

3.实例对象.getClass()

posted @ 2015-10-09 10:46  行云有影  阅读(150)  评论(0编辑  收藏  举报