摘要: 对代理的理解//实例化一个类,这个类实现InvocationHandler 接口InvocationHandler handler = new TraceHandler(value);//实例化一个对象,这个对象实现了指定的接口,这个对象和上面的类实例建立了关系Object proxy = Prox... 阅读全文
posted @ 2015-07-29 10:53 杨小雄 阅读(96) 评论(0) 推荐(0)
摘要: 啥是多态:Person 是superclass,Man是Subclass可以这么用:Person aPerson = new Man(); 阅读全文
posted @ 2015-07-26 22:32 杨小雄 阅读(222) 评论(0) 推荐(0)
摘要: java数组英文:Arrays存储相同数值的集合的数据结构An array is a data structure that stores a collection of values of the same type. You accesseach individual value through... 阅读全文
posted @ 2015-07-26 21:55 杨小雄 阅读(277) 评论(0) 推荐(0)