public class Test { <br /> public static void main(String args[]) { <br /> class Foo { <br /> public int i = 3;<br /> } <br /> Object o = (Object)new Foo(); <br />  Foo foo = (Foo)o; <br /> System.out.println(“i = “ + foo.i);<br /> } <br /> } <br /> What is the result?()  
A、 i = 3
B、 Compilation fails.
C、 A ClassCastException is thrown at line 6.
D、 A ClassCastException is thrown at line 7.