摘要: 1 2 3 4 5 Untitled Document 6 7 39 40 41 42 你喜欢哪个城市?43 44 北京45 ... 阅读全文
posted @ 2015-02-04 21:11 浮云骑士 阅读(2040) 评论(1) 推荐(0)
摘要: 1 2 3 4 5 Untitled Document 6 7 29 30 31 32 你喜欢哪个城市?33 34 北京35 ... 阅读全文
posted @ 2015-02-04 21:10 浮云骑士 阅读(2707) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 Untitled Document 6 7 29 30 31 32 你喜欢哪个城市?33 北京34 上海35... 阅读全文
posted @ 2015-02-04 21:09 浮云骑士 阅读(8620) 评论(0) 推荐(1)
摘要: 1 2 3 4 5 Untitled Document 6 7 29 30 31 32 你喜欢哪个城市?33 34 北京35 ... 阅读全文
posted @ 2015-02-04 21:07 浮云骑士 阅读(147) 评论(0) 推荐(0)
摘要: 1 2 3 4 5 Untitled Document 6 7 40 41 42 43 你喜欢哪个城市?44 45 北京46 ... 阅读全文
posted @ 2015-02-04 21:06 浮云骑士 阅读(374) 评论(0) 推荐(0)
摘要: 1 import java.lang.reflect.InvocationHandler; 2 import java.lang.reflect.Method; 3 import java.lang.reflect.Proxy; 4 5 //动态代理的使用,体会反射是动态语言的关键 6 inte... 阅读全文
posted @ 2015-02-04 21:00 浮云骑士 阅读(135) 评论(0) 推荐(0)
摘要: 1 //静态代理模式 2 //接口 3 interface ClothFactory{ 4 void productCloth(); 5 } 6 //被代理类 7 class NikeClothFactory implements ClothFactory{ 8 9 @Overr... 阅读全文
posted @ 2015-02-04 20:59 浮云骑士 阅读(267) 评论(0) 推荐(0)
摘要: 1 //1.获取运行时类的父类2 @Test3 public void test1(){4 Class clazz = Person.class;5 Class superClass = clazz.getSuperclass();6 ... 阅读全文
posted @ 2015-02-04 20:57 浮云骑士 阅读(165) 评论(0) 推荐(0)
摘要: 1 @Test 2 public void test1() throws Exception{ 3 String className = "com.atguigu.java.Person"; 4 Class clazz = Class.forName(cla... 阅读全文
posted @ 2015-02-04 20:53 浮云骑士 阅读(165) 评论(0) 推荐(0)
摘要: 1 //1.获取运行时类的方法 2 3 @Test 4 public void test1(){ 5 Class clazz = Person.class; 6 //1.getMethods():获取运行时类及其父类中所有的声明为p... 阅读全文
posted @ 2015-02-04 20:52 浮云骑士 阅读(178) 评论(0) 推荐(0)