会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
凛至
博客园
首页
新随笔
新文章
联系
管理
订阅
2022年1月8日
反射获取Class类对象
摘要: //方式一 通过运行时类的属性调用Class类Class clazz1 = Person.class;System.out.println(clazz1);//方式二 通过运行时类的对象,调用getClass()Person p1=new Person();Class clazz2 = p1.get
阅读全文
posted @ 2022-01-08 12:57 凛至
阅读(40)
评论(0)
推荐(0)
公告