首页 > 编程语言 > 详细

[Java Basics] Reflection

时间:2014-08-14 01:12:47      阅读:336      评论:0      收藏:0      [点我收藏+]

For every type of object, the Java virtual machine instantiates an immutable instance of java.lang.Class which provides methods to examine the runtime properties of the object including its members and type information. Class also provides the ability to create new classes and objects. Most importantly, it is the entry point for all of the Reflection APIs.

对于ref object,可以call Object.getClass()来获取Class。

对于primitive,可以call boolean.class。

[Java Basics] Reflection,布布扣,bubuko.com

[Java Basics] Reflection

原文:http://www.cnblogs.com/chayu3/p/3911469.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!