已采纳回答 / 小丶冬瓜
                                
                                                            在使用中指定哪个就调用哪个,比如说例子中测试类调用了Train.move()方法,那么就是move()方法,如果Train类中还存在其他方法比如put()方法,那么则通过Train.put()调用。而proxy.invokeSuper(obj, args);中的args是指定在调用方法时可否带参数。如果proxy.invokeSuper(obj);的话。在调用方法时是不可以带参数的。
                            
                        
                        2018-02-25
                
            
                                已采纳回答 / 窗下有梧桐
                                
                                                            InvocationHandler invocationHandler2=new LogHandler(moveable);
		Class<?> class2 = moveable.getClass();
		Moveable moveable2 =(Moveable)Proxy.newProxyInstance(class2.getClassLoader(), class2.getInterfaces(), invocationHandler2);
		moveable2.move();
                            
                        
                        2017-11-14
                
             
             
        













