1 package test3; 2 3 interface InvokedIntf { clone()4 Object clone(); 5 } 6 7 interface InvokedIntf2 extends InvokedIntf { 8 } 9 10 class InvokedIntf3 implements InvokedIntf2 { clone()11 public Object clone() { 12 try { 13 return super.clone(); 14 } 15 catch (Exception e) { 16 return null; 17 } 18 } 19 } 20 21 public class InvokeIntf { test()22 public int test() { 23 doit(new InvokedIntf3()); 24 return 7; 25 } doit(InvokedIntf2 ii)26 public void doit(InvokedIntf2 ii) { 27 ii.clone(); 28 ii.toString(); 29 } 30 } 31