moveable.getClass().getName()
Moveable?moveable?=?(Moveable)Proxy.newProxyInstance(cls.getClassLoader(),cls.getInterfaces(),handler); System.out.println("產生動態代理實例的類名稱?=?["?+?moveable.getClass().getName()?+?"]");
Proxy類的
newProxyInstance
方法,再反射回去 找類的名字,不應該是Proxy嗎?為什么是$Proxy0?
2018-08-30