码迷,mamicode.com
首页 > 编程语言 > 详细

[Java Basics] Reflection

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

标签:des   http   java   os   io   for   ar   cti   

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

标签:des   http   java   os   io   for   ar   cti   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!