1.public class Test { <br /> 2.public static void main (String args[]) { <br /> 3.class Foo { <br /> 4.public int i = 3; <br /> 5.} <br /> 6.Object o = (Object) new Foo(); <br /> 7.Foo foo = (Foo)o; <br /> 8.System.out.printIn(foo. i);<br /> 9. } <br /> 10.}  <br /> What is the result?()  
A、 Compilation will fail.
B、 Compilation will succeed and the program will print “3”
C、 Compilation will succeed but the program will throw a ClassCastException at line 6.
D、 Compilation will succeed but the program will throw a ClassCastException at line 7.