2014年1月9日
摘要: 本篇文章依旧采用小例子来说明,因为我始终觉的,案例驱动是最好的,要不然只看理论的话,看了也不懂,不过建议大家在看完文章之后,在回过头去看看理论,会有更好的理解。下面开始正文。【案例1】通过一个对象获得完整的包名和类名?123456789101112131415package Reflect;/*** 通过一个对象获得完整的包名和类名* */class Demo{//other codes...}class hello{public static void main(String[] args) {Demo demo=new Demo();System.out.println(demo.getC 阅读全文
posted @ 2014-01-09 16:24 emma_6 阅读(227) 评论(0) 推荐(0) 编辑