会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
文 武
-- sometime it's the very people who no one imagines anything of who do the things that no one can imagine.
首页
新随笔
联系
管理
Java反射之 getMethod() 与invoke的使用,int.class vs integer.class
1、forName 方法 forName是一个静态方法,其作用:通过调用来获取类名对应的Class对象,同时将Class对象加载进来。 如果将类名保存在字符串(如xml)中,就可以在程序运行时,动态调用加载。 注意:只有调用的参数是类名或者方法时,才可用。 2、newInstance()方法 作用:
摘抄自网络,便于检索查找。
posted @
2024-06-28 14:27
CharyGao
阅读(
3
) 评论(
0
)
编辑
收藏
举报
指间灵动,快码加编
刷新页面
返回顶部
公告